This library provides Voinext button component for React.
Follow the next steps to add Voinext button to your React application.
-
Install peer dependencies:
- via
npm
:
npm install react react-dom prop-types redux react-redux fingerprintjs2 immutable redux-thunk uribuilder
- via
yarn
:
yarn add react react-dom prop-types redux react-redux fingerprintjs2 immutable redux-thunk uribuilder
- via
-
Install component:
- via
npm
:
npm install voinext-button-components
- via
yarn
:
yarn add voinext-button-components
- via
-
Import component library:
import VoinextButton from 'voinext-button-components'
-
Use your button:
import React, {Component} from 'react'; import VoinextButton from 'voinext-button-components' class App extends Component { render() { return ( <div className="App"> <VoinextButton buttonId={123456}/> </div> ); } }
You can get the
buttonId
property in your Voinext Dashboard