1.1.0 • Published 2 years ago
react-qr-image v1.1.0
react-qr-image
Generate a QR Image for your React app
Table of Contents
About
Build on the top of the excellent qr-image-color package.
Usage
import React from "react";
import ReactDOM from "react-dom";
import QRImage from 'react-qr-image'
function App() {
return (
<>
<QRImage text="hello" />
<QRImage text="hello" color="red" />
<QRImage text="hello" color="white" background="#111" />
<QRImage>hello</QRImage>
</>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
Install
This project uses node and npm.
$ npm install react-qr-image
$ # OR
$ yarn add react-qr-image
Contribute
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
MIT