A React component to generate QR codes.
npm install qrcode.react
var React = require('react');
var QRCode = require('qrcode.react');
React.render(
<QRCode value="http://facebook.github.io/react/" />,
mountNode
);
prop | type | default value |
---|---|---|
className |
string |
"" |
value |
string |
N.A |
size |
number |
128 |
bgColor |
string (CSS color) |
"#FFFFFF" |
fgColor |
string (CSS color) |
"#000000" |
level |
string ("L", "M", "Q", "H" ) |
"L" |