Skip to content

Commit f709fd5

Browse files
committed
Update react docs
1 parent 9431ae4 commit f709fd5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/react/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const [
183183

184184
## `useSetChain`
185185

186-
This hook allows you to set the chain of a user's connected wallet, keep track of the current chain the user is connected to and the status of setting the chain.
186+
This hook allows you to set the chain of a user's connected wallet, keep track of the current chain the user is connected to and the status of setting the chain. Passing in a wallet label will operate on that connected wallet, otherwise it will default to the last connected wallet.
187187

188188
```typescript
189189
import { useSetChain } from '@web3-onboard/react'
@@ -224,8 +224,5 @@ import { useWallets } from '@web3-onboard/react'
224224

225225
type UseWallets = (): WalletState[]
226226

227-
const [
228-
wallets, //
229-
setChain // function to call to initiate user to switch chains in their wallet
230-
] = useSetChain()
227+
const connectedWallets = useWallets()
231228
```

0 commit comments

Comments
 (0)