Migration from ConnectKit to AppKit
Migration from ConnectKit to AppKit
If you have currently set up ConnectKit as the wallet provider for your Web3 app, you can easily migrate to Reown AppKit.
Assuming that your Web3 app is set up similarly to ConnectKit’s example app here, let’s explore how to migrate from this example app to Reown AppKit.
To migrate from ConnectKit to Reown AppKit, please follow the steps below.
Step 1. Create a project in Reown Cloud
- Create a new project on Reown Cloud and obtain a new project ID.
Step 2. Install & uninstall libraries
- Run this command to install Reown AppKit and uninstall ConnectKit.
Step 3. Change the code in the /components/Web3Provider.tsx
file
- Navigate to the
/components/Web3Provider.tsx
file inside your ConnectKit example Web3 app directory. . Now, you need to remove the existing configuration that uses ConnectKit and replace it with Reown AppKit. Refer to the code snippet below.
Step 4. Change the code in the /pages/index.tsx
file
- Navigate to the
/pages/index.tsx
file inside your ConnectKit example Web3 app directory. - Now, you need to remove the existing code that uses
<ConnectKitButton />
and replace it with<w3m-button />
. Refer to the code snippet below.
Final notes
- Ensure that you have updated all relevant configurations and imports in your project to reflect the changes from ConnectKit to Reown AppKit.
- Test your application thoroughly to ensure that the migration has been successful and that all functionality is working as expected.
- Check our AppKit Web examples to compare with your implementation in case you are having issues
- If you want to start from scratch, please refer to the Installation docs here
Was this page helpful?