23
ReactJs Qrcode generator library
reactjs-qrcode-generator is a clean and simple QRcode generator library for reactJS.
npm install --save reactjs-qrcode-generator
import React, { Component } from 'react'
import {ReactQrcode} from 'reactjs-qrcode-generator'
class Example extends Component {
render() {
return <ReactQrcode qrvalue={qrvalue} size={size} level={1} />
}
}
Attribute | Type | Default | Description |
---|---|---|---|
level | Number | 1 | QR ECC level (1, 2, 3, 4) |
qrvalue | String | This is Qrcode | Your String |
size | Number | 200 | (Width/Height value) |
Level | Description |
---|---|
1 | low |
2 | medium |
3 | quartile |
4 | high |
MIT © naimmalek
23