docs: README

Update readme with improved installation instructions for example for pnpm
This commit is contained in:
igeligel 2023-05-19 11:01:25 +02:00 committed by tato
parent 839fc3d541
commit 2a99c0a26c
2 changed files with 42 additions and 8 deletions

View File

@ -99,13 +99,30 @@
## 快速开始 (react)
### 安装库
```shell
yarn add @fortune-sheet/react
```
或使用 npm:
<details open>
<summary>使用 npm</summary>
```shell
npm install @fortune-sheet/react
```
</details>
<details>
<summary>使用 pnpm</summary>
```shell
pnpm install @fortune-sheet/react
```
</details>
<details>
<summary>使用 yarn</summary>
```shell
yarn add @fortune-sheet/react
```
</details>
### 创建一个HTML容器
```html

View File

@ -102,13 +102,30 @@ See detailed documentation at [fortune-sheet-doc](https://ruilisi.github.io/fort
## Get started (react)
### Download and install the library
```shell
yarn add @fortune-sheet/react
```
or using npm:
<details open>
<summary>Using npm</summary>
```shell
npm install @fortune-sheet/react
```
</details>
<details>
<summary>Using pnpm</summary>
```shell
pnpm install @fortune-sheet/react
```
</details>
<details>
<summary>Using yarn</summary>
```shell
yarn add @fortune-sheet/react
```
</details>
### Create an HTML placeholder
```html