kybarg / react-barcode-reader

React component for reading barcode an QR codes from devices that are represented as keyboard to the system.
MIT License
86 stars 34 forks source link

feat: add useBarcodeScanner hook #6

Open kaisheng1 opened 4 years ago

kaisheng1 commented 4 years ago

Keep the original BarcodeScanner component and introduce new React hook useBarcodeScanner.