Skip to content

Commit

Permalink
docs(react): fix react sample startup guide & add needful dependency …
Browse files Browse the repository at this point in the history
…@near-wallet-selector/modal-ui
  • Loading branch information
AlienegraGeek committed Jul 3, 2024
1 parent 01081ae commit d354c50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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
```
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",
"@peersyst/near-mobile-signer": "^1.0.10",
"@ramper/near": "^0.0.30",
"@walletconnect/modal": "^2.6.2",
Expand Down

0 comments on commit d354c50

Please sign in to comment.