gera2ld / qrcanvas-react

A QRCode component for use with ReactJS

Home Page:https://gera2ld.github.io/qrcanvas-react/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qrcanvas-react

NPM License Downloads

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.

About

A QRCode component for use with ReactJS

https://gera2ld.github.io/qrcanvas-react/

License:MIT License


Languages

Language:JavaScript 84.5%Language:TypeScript 15.5%