Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix react sample startup guide & add needful dependency … #1128

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
This React example shows how to integrate Near Wallet Selector into your React application for easy Near wallet integration.

# Usage
Make sure your node version is 18

Then perform the build:
```bash
yarn build all
AlienegraGeek marked this conversation as resolved.
Show resolved Hide resolved
```
Need to add a separate dependency, otherwise a error `Module not found` will be reported.
```bash
yarn add @near-wallet-selector/modal-ui
```
Start the development server:
```bash
yarn nx serve react
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"@meteorwallet/sdk": "^1.0.9",
"@mintbase-js/wallet": "0.6.0-beta.3",
"@near-snap/sdk": "^0.6.0",
"@near-wallet-selector/modal-ui": "^8.9.10",
AlienegraGeek marked this conversation as resolved.
Show resolved Hide resolved
"@peersyst/near-mobile-signer": "^1.0.10",
"@ramper/near": "^0.0.30",
"@walletconnect/modal": "^2.6.2",
Expand Down
Loading