Skip to content

Commit 0f6076a

Browse files
committed
docs: simplify Installation
1 parent 4a5d4e0 commit 0f6076a

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ React basic virtual list, supports common features and is easy to customize. [On
99
- Supports common features and is easy to customize. Check [Development](#development).
1010
- Supports lists with fixed height or dynamic height items.
1111
- High performance. For lists with different item heights, it does not retrieve the height of each item.
12-
- Exported files include TypeScript definition files, CJS files, ES files, IIFE files, and IIFE source maps. The IIFE file can be use by `script` tag in browser, see [IIFE](#iife).
12+
- Formats of exported files: typescript, cjs, esm, iife, iife source map. iife can be use by `script` tag in browser, see [IIFE](#iife).
1313

1414
## Installation
1515

16-
```sh
17-
npm install @phphe/react-base-virtual-list --save
18-
```
16+
- npm: `npm install @phphe/react-base-virtual-list`
17+
- yarn: `yarn add @phphe/react-base-virtual-list`
18+
- pnpm: `pnpm add @phphe/react-base-virtual-list`
19+
- CDN: Check [iife](#iife).
1920

2021
## Usage
2122

README_CN.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ React 基础虚拟列表,实现了常用功能并且易于二次开发。[在
99
- 实现了常用功能并且易于二次开发,见[开发指南](#开发指南)
1010
- 支持每项高度固定和不固定的列表。
1111
- 高性能。针对每项高度不同的列表,不会获取每项的高度。
12-
- 导出文件包含 typescript 定义文件, cjs 文件,es 文件,iife 文件和 iife source mapiife 文件供浏览器直接调用,见 [iife](#iife).
12+
- 导出文件包括格式: typescript, cjs, esm, iife, iife source map. iife 文件供浏览器直接调用,见 [iife](#iife).
1313

1414
## 安装
1515

16-
```sh
17-
npm install @phphe/react-base-virtual-list --save
18-
```
16+
- npm: `npm install @phphe/react-base-virtual-list`
17+
- yarn: `yarn add @phphe/react-base-virtual-list`
18+
- pnpm: `pnpm add @phphe/react-base-virtual-list`
19+
- CDN: 见 [iife](#iife).
1920

2021
## 使用
2122

0 commit comments

Comments
 (0)