I am trying to integrate scanner.js in my react my but I am running with the issue TypeError: Cannot read property \'scan\' of undefined
TypeError: Cannot read property \'scan\' of undefined
codes look like