useRainbowWallet
Hook that prompts users to connect their Rainbow wallet to your app.
import { useRainbowWallet } from "@thirdweb-dev/react";
The rainbowWallet also needs to be added in ThirdwebProvider's supportedWallets if you want the wallet to auto-connect on next page load.
Usage
Call the function returned by the useRainbowWallet
hook to prompt the user to connect their Rainbow wallet to your dApp.
You can then use the useAddress
hook to get the user's address.
import { useRainbowWallet } from "@thirdweb-dev/react";
function App() {
const connectWithRainbow = useRainbowWallet();
return <button onClick={() => connectWithRainbow()}>Connect Rainbow</button>;
}