qr reader react js code example
Example: qr reader react js
import React, { Component } from 'react'import QrReader from 'react-qr-reader' class Test extends Component { state = { result: 'No result' } handleScan = data => { if (data) { this.setState({ result: data }) } } handleError = err => { console.error(err) } render() { return ( {this.state.result}
) }}