Basic informations
This document describes a basic way of integrating metapro plugin into your web app.
First, you'll need to add our plugin to your project.
If you use npm or yarn, run:
npm
yarn
npm install @metapro/connector
yarn add @metapro/connector
The provider has his own react version so these versions must at least be compatible
to avoid failure use at least react version "18.2.0"
Our plugin uses Material UI, to properly display our plugin you need to install desired dependencies
"@emotion/react"
"@emotion/styled"
"@mui/material"
npm
yarn
npm install @mui/material @emotion/react @emotion/styled
yarn add @mui/material @emotion/react @emotion/styled
-----------------------------------------------------------------------------------------------------
For now, we are supporting BSC testnet and mainnet we'll extend our plugin for other chains in close future
-----------------------------------------------------------------------------------------------------
useMetapro()
A hook that returns an object with the following properties:
- login: a function that will open the Metapro login modal.
- logout: a function that will log out the user from Metapro.
- metaproHooks: an object with the following properties:
When the plugin is already implemented in your application just a couple of simple steps to get started :


- Click here to scan QR code

