Natural Performance Manager
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

react-scannable

0.0.17 • 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

Keywords

none

install

npm i react-scannable

Downloadsweekly downloads

5

version

0.0.17

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability