1.1.0 • Published 2 years ago

react-qr-image v1.1.0

Weekly downloads
177
License
MIT
Repository
-
Last release
2 years ago

react-qr-image

package version package downloads standard-readme compliant package license make a pull request

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);

Edit wispy-haze-cvm06

Install

This project uses node and npm.

$ npm install react-qr-image
$ # OR
$ yarn add react-qr-image

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am "Add some feature"
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT