npm install react-scannableimport React from 'react';
import { Scannable, Scanner } from 'react-scannable';
function Example() {
const active = true;
return (
<Scanner active={active}>
<Scannable>
<button>CLICK</button>
</Scannable>
</Scanner>
);
}To develop and verify the package locally:
npm install
npm test
npm run build
npm run demoRun the complete release-oriented verification with npm run check.
MIT © shayc