Skip to content

Commit 6ad8865

Browse files
authored
Merge pull request #245 from Dynamsoft/_dev
Update App.tsx
2 parents 411a682 + 68ecd48 commit 6ad8865

File tree

1 file changed

+1
-1
lines changed
  • barcode-scanner-api-samples/scan-single-barcode/react/src

1 file changed

+1
-1
lines changed

barcode-scanner-api-samples/scan-single-barcode/react/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function App() {
2626
barcodeScanner.launch().then((result) => {
2727
alert(result.barcodeResults[0].text);
2828
});
29-
});
29+
}, []);
3030
return (
3131
<div className="barcode-scanner-hello-world-page">
3232
<div className="barcode-scanner-title">

0 commit comments

Comments
 (0)