0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/console/public/get-started/application/react/zh-cn/step1.md

573 B

title subtitle
安装 Logto SDK 1 step

方案1: 安装 SDK 依赖包

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

方案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>

方案3: Fork your own from github

git clone https://github.com/logto-io/js.git
pnpm build