react-scannable

0.0.18 • Public • Published

react-scannable

NPM

Install

npm install --save react-scannable

Usage

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

class Example extends Component {
  state = {
    isActive: true,
  };

  render() {
    const active = this.state.isActive;

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

License

MIT © shayc

Dependents (1)

Package Sidebar

Install

npm i react-scannable

Weekly Downloads

7

Version

0.0.18

License

MIT

Unpacked Size

159 kB

Total Files

5

Last publish

Collaborators

  • tinchodipalma
  • shayc