An open API service indexing awesome lists of open source software.

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

A QRCode component for use with ReactJS
https://github.com/gera2ld/qrcanvas-react

Last synced: over 1 year ago
JSON representation

A QRCode component for use with ReactJS

Awesome Lists containing this project

README

          

# qrcanvas-react

![NPM](https://img.shields.io/npm/v/qrcanvas-react.svg)
![License](https://img.shields.io/npm/l/qrcanvas-react.svg)
![Downloads](https://img.shields.io/npm/dt/qrcanvas-react.svg)

This a QRCode component for use with ReactJS, based on [qrcanvas](https://github.com/gera2ld/qrcanvas).

## Installation

``` sh
$ yarn add qrcanvas-react
```

## Usage

```javascript
import { QRCanvas } from 'qrcanvas-react';
import ReactDOM from 'react-dom';

const options = { data: 'hello, world' };
ReactDOM.render(, document.getElementById('app'));
```

`options` is passed to [qrcanvas](https://github.com/gera2ld/qrcanvas). For more details, see [qrcanvas docs](https://github.com/gera2ld/qrcanvas/wiki).

See [more examples](https://gera2ld.github.io/qrcanvas-react/).