
Description
QRCode.react is a React component that generates QR codes. The demo page shows version 4.2.0 running with React 19, and it covers two renderers, QRCodeSVG and QRCodeCanvas. The Full demo lets you set every prop, including size, background and foreground colour, error correction level (L, M, Q or H), minimum version, boost level and margin size, plus a value, a title, and an optional centred image with its own width, height and opacity. A Download demo shows how to trigger a client-side download of the rendered code, and an img demo shows how to reach the underlying canvas through a ref and extract its image data to put in an HTML img element. Because everything runs in the browser, you pass the text or URL you want encoded and the component draws the code. It is a UI library for React apps that need QR codes, such as links, tickets or sharing pages. The demo page does not show a license or pricing.…
Highlights
- React component for QR codes
- SVG and canvas renderers
- Error levels L, M, Q and H
- Optional centred image overlay
- Client-side download and image export
Ratings & Reviews
No ratings yet
Be the first to rate qrcode.react.
People also visit

react-json-to-csv
A react button component to easily generate csv downloads of your json data
qrcode.react FAQ
What is QRCode.react?
It is a React component that generates QR codes, with SVG and canvas renderers.
Can I add a logo in the middle?
Yes. The demo shows an include-image option with its own source, width, height and opacity settings.
How do I download the code as an image?
The Download demo shows how to trigger a client-side download of the rendered QR code. The img demo shows how to read the canvas through a ref and turn it into an image.
Which error correction levels are there?
The demo offers L, M, Q and H, along with minimum version and boost level settings.
What are the best qrcode.react alternatives?
Popular alternatives to qrcode.react include @lglab/react-qr-code, react-barcode and react-jsbarcode. See all qrcode.react alternatives
















