File tree 1 file changed +8
-1
lines changed
packages/thirdweb/src/react/core/hooks/wallets 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,14 @@ import { useSetActiveWalletConnectionStatus } from "./useSetActiveWalletConnecti
11
11
* @returns A function that lets you connect a wallet.
12
12
* @example
13
13
* ```jsx
14
+ * import { createThirdwebClient } from "thirdweb";
14
15
* import { useConnect } from "thirdweb/react";
15
16
* import { createWallet } from "thirdweb/wallets";
16
17
*
18
+ * const client = createThirdwebClient({
19
+ * clientId: "YOUR_CLIENT_ID",
20
+ * });
21
+ *
17
22
* function Example() {
18
23
* const { connect, isConnecting, error } = useConnect();
19
24
* return (
@@ -23,7 +28,9 @@ import { useSetActiveWalletConnectionStatus } from "./useSetActiveWalletConnecti
23
28
* // instantiate wallet
24
29
* const wallet = createWallet("io.metamask");
25
30
* // connect wallet
26
- * await wallet.connect();
31
+ * await wallet.connect({
32
+ * client,
33
+ * });
27
34
* // return the wallet
28
35
* return wallet;
29
36
* })
You can’t perform that action at this time.
0 commit comments