Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async generateQRCode() {
const { value } = this.props;
await delay(800);
const qrCodeSrc = await qrcode.create(value);
const arr = [...qrCodeSrc.modules.data];
const sqrMatrix = this.generateSquareMatrix(arr);
this.setState({
sqrMatrix,
isGenerating: false,
});
}