Migration from RainbowKit to AppKit
Follow the steps below to migrate from the default RainbowKit project using Next.js Pages to an AppKit project using wagmi.
Step 1. Create a project in WalletConnect Cloud
- Create a new project on WalletConnect Cloud and obtain a new project ID.
Step 2. Install & uninstall libraries
- Run this command to install AppKit and uninstall RainbowKit.
pnpm install @web3modal/wagmi && pnpm uninstall @rainbow-me/rainbowkit
Step 3. Change the index.tsx
Use the AppKit Button. It can be configure following these guidelines.
- import { ConnectButton } from '@rainbow-me/rainbowkit';
- <ConnectButton />
+ <w3m-button />
info
AppKit's web components are global HTML elements that don't require importing.