Skip to content

Repository files navigation

react-scannable

NPM

Install

npm install react-scannable

Usage

import React from 'react';
import { Scannable, Scanner } from 'react-scannable';

function Example() {
  const active = true;

  return (
    <Scanner active={active}>
      <Scannable>
        <button>CLICK</button>
      </Scannable>
    </Scanner>
  );
}

Development

To develop and verify the package locally:

npm install
npm test
npm run build
npm run demo

Run the complete release-oriented verification with npm run check.

License

MIT © shayc

Releases

Packages

Used by

Contributors

Languages