mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
34 lines
584 B
Markdown
34 lines
584 B
Markdown
|
---
|
||
|
title: Install Logto SDK
|
||
|
subtitle: 1 step
|
||
|
---
|
||
|
## Option 1: Install your SDK dependency
|
||
|
|
||
|
Run the CLI command under your project's root directory.
|
||
|
|
||
|
```
|
||
|
// installation with npm
|
||
|
npm install @logto/react --save
|
||
|
|
||
|
// installation with yarn
|
||
|
yarn add @logto/react
|
||
|
|
||
|
// installation with pnpm
|
||
|
pnpm install @logto/react --save
|
||
|
```
|
||
|
|
||
|
## Option 2: Add script tag to your HTML
|
||
|
|
||
|
```
|
||
|
<script src="https://logto.io/js/logto-sdk-react/0.1.0/logto-sdk-react.production.js"></script>
|
||
|
```
|
||
|
|
||
|
## Option 3: Fork your own from github
|
||
|
|
||
|
```
|
||
|
git clone https://github.com/logto-io/js.git
|
||
|
```
|
||
|
|
||
|
```
|
||
|
pnpm build
|
||
|
```
|