I don't know, I've really tried to make this work in a React.js application but it seems to be causing massive memory leaks. I've read tons of documentation and some methods doesn't work as expected. There is also interface compability issues between the @zxing/library and @zxing/browser projects.
It took a little while to get the correct Node modules aligned, but once installed this library worked like a dream. The ability to scan a QR code on the client device, decode it to a string that I was able to send back to the server is exactly what I was after.