I am working on a React web application where I need a QR code scanner. I have followed this example. It instructs to a add a script tag in the index html file, then creates