<WalletProvider>
<WalletProvider>
is the React context provider for the embedded wallet.
Example
src/index.tsx
import { createWallet } from '@passkeys/core';
import { WalletProvider } from '@passkeys/react';
const wallet = createWallet();
function Root() {
return (
<WalletProvider wallet={wallet}>
<App />
</WalletProvider>
);
}
Reference
props.wallet
The initialized wallet as returned by createWallet
.