Comment on page
Installation
If you are looking for something a little more integrated, then Subbi has you covered! Our react library will allow you to include a Subbi checkout directly on your website, however you like!
To get started:
yarn add @subbi/react
or
npm install @subbi/react
Then, before anything else, make sure to wrap the root of your app with the SubbiProvider. In your
index.js
or equivalent React root file:import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { SubbiProvider } from "@subbi/react";
ReactDOM.render(
<React.StrictMode>
<SubbiProvider network="polygon">
<App />
</SubbiProvider>
</React.StrictMode>,
document.getElementById('root')
);
Last modified 1yr ago