0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(docs): optimize React get started (#532)

This commit is contained in:
Gao Sun 2022-04-12 12:05:04 +08:00 committed by GitHub
parent 2b0a1a9190
commit 3718a18286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 10 deletions

View file

@ -3,8 +3,6 @@ import TabItem from '@theme/TabItem';
## Install SDK
_Option 1: Install your SDK dependency_
<Tabs>
<TabItem value="npm" label="npm">
@ -27,17 +25,21 @@ pnpm add @logto/react
```
</TabItem>
</Tabs>
_Option 2: Add script tag to your HTML_
<TabItem value="script" label="script">
```html
<script src="https://logto.io/js/logto-sdk-react/0.1.0/logto-sdk-react.production.js" />
```
_Option 3: Fork your own from GitHub_
</TabItem>
<TabItem value="git" label="Git">
```bash
git clone https://github.com/logto-io/js.git
pnpm build
```
</TabItem>
</Tabs>

View file

@ -3,8 +3,6 @@ import TabItem from '@theme/TabItem';
## 安装 Logto SDK
_方案 1: 安装 SDK 依赖包_
<Tabs>
<TabItem value="npm" label="npm">
@ -27,17 +25,21 @@ pnpm add @logto/react
```
</TabItem>
</Tabs>
_方案 2: Add script tag to your HTML_
<TabItem value="script" label="script">
```html
<script src="https://logto.io/js/logto-sdk-react/0.1.0/logto-sdk-react.production.js" />
```
_方案 3: Fork your own from GitHub_
</TabItem>
<TabItem value="git" label="Git">
```bash
git clone https://github.com/logto-io/js.git
pnpm build
```
</TabItem>
</Tabs>