Add the widget to your React project using npm
or your favorite javascript package manager.
You'll need to add the following:
The <KimaProvider>
component in App.tsx
The <KimaTransactionWidget>
which interacts with Kima
A link to the Kima Transaction Backend (or build your own)
A WalletConnect project id
For the purposes of this example, we'll just add the widget to App.tsx
, but it can go anywhere it makes sense for your project.
Open App.tsx
, wrap your existing componts with the <KimaProvider>
and add the <KimaTransactionWidget>
component.
If you don't have one already, you'll need to get a (free) WallectConnect project ID from Reown Cloud and add it to the <KimaProvider>
component.
In the following sections, we'll go through the framework specific configuration for Vinalla React and NextJS.