Migrating from Privy to AppKit
If you’re migrating a React Privy dApp originally built with create-react-app
, we recommend switching to Vite for improved performance and a better developer experience.
You can check out our examples for a complete implementation using Vite + AppKit.
Follow the steps below to migrate from a default Privy project (using Next.js Pages) to an AppKit project with wagmi.
Step 1. Create a project in Reown Cloud
- Go to Reown Cloud.
- Create a new project and copy your Project ID — you’ll need it later.
Step 2. Install & uninstall libraries
Replace Privy dependencies with AppKit by running the following commands for your preferred package manager:
Step 3. Update _app.tsx
To make AppKit Functional in a similar way, we need to replace the PrivyProvider with the combination of WagmiProvider and QueryClientProvider
- Update Your Imports
- Configure AppKit Outside the Component
- Wrap Your App With Providers
Update your component tree to use WagmiProvider and QueryClientProvider, and render the global appkit-button
element:
AppKit web components (like <appkit-button>
) are global HTML elements — no imports are necessary.
Final notes
- Test your application thoroughly to ensure the migration has been successful and that all functionality is working as expected.
- Check our AppKit Web examples to compare with your implementation if you encounter issues.
- If you want to start from scratch, refer to the Installation docs here.