kaisheng1

Results 2 issues of kaisheng1

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

It's a really good example here and I learned a lot from this. However, it might be better if you can make it a hook instead of a component, as...