2.0.2 • Published 4 years ago
qrcanvas-react v2.0.2
qrcanvas-react
This a QRCode component for use with ReactJS, based on qrcanvas.
Installation
$ yarn add qrcanvas-react
Usage
import { QRCanvas } from 'qrcanvas-react';
import ReactDOM from 'react-dom';
const options = { data: 'hello, world' };
ReactDOM.render(<QRCanvas options={options} />, document.getElementById('app'));
options
is passed to qrcanvas. For more details, see qrcanvas docs.
See more examples.