So I\'m trying to reproduce a simple example code of react-qr-scanner, but in the code below as I try to access the text property of data object inside the handleScan, it throws