Skip to main content
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 Dashboard

  • Go to Reown Dashboard.
  • 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:
AppKit is only compatible with wagmi 2.x. Ensure you are using a compatible version.

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
  1. Update Your Imports
  1. Configure AppKit Outside the Component
  1. 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.