React wrapper for RenJS and GatewayJS
npm install ren-react
Import the library:
import { useRenJS, useGatewayJS } from 'ren-react';
Get RenJS or GatewayJS with React Hooks inside functional component:
const renJS = useRenJS('testnet');
const gatewayJS = useGatewayJS('testnet');
Import the library:
import { getRenJS, getGatewayJS } from 'ren-react';
Get Web3Context
:
const renJS = getRenJS('testnet');
const gatewayJS = getGatewayJS('testnet');
- Try it out with our Getting Started with RenJS Tutorial.
- For detailed information on RenVM, take a look at our Developer Center and Github Wiki.
Released under the MIT License.