React Webcam Barcode Scanner
This is a simple barebones React component built in Typescript to provide a webcam-based barcode scanner using react-webcam and @zxing/library. This component works on Computers and Mobile Devices (iOS 11 and above and Android Phones).
Installation
npm i react-webcam-barcode-scanner
Usage in React:
A demo of this can be found at: https://barcode.phdash.com.
import React from 'react';import BarcodeScannerComponent from "react-webcam-barcode-scanner"; { const data setData = React; return <> <BarcodeScannerComponent = = = /> <p>data</p> </> } ;