Skip to content

Commit 882c27e

Browse files
Update README.md
When I tried running the sample, it shows me an error. After adding "this." to "resultsContainer, the error was cleared.
1 parent b058203 commit 882c27e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hello-world/react/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ class VideoCapture extends React.Component {
173173
) => {
174174
if (!result.barcodeResultItems.length) return;
175175
176-
resultsContainer.current!.textContent = '';
176+
this.resultsContainer.current!.textContent = '';
177177
console.log(result);
178178
for (let item of result.barcodeResultItems) {
179-
resultsContainer.current!.append(
179+
this.resultsContainer.current!.append(
180180
`${item.formatString}: ${item.text}`,
181181
document.createElement('br'),
182182
document.createElement('hr'),
@@ -527,4 +527,4 @@ See the section about [deployment](https://facebook.github.io/create-react-app/d
527527

528528
## Support
529529

530-
If you have any questions, feel free to [contact Dynamsoft support](https://www.dynamsoft.com/company/contact?utm_source=sampleReadme).
530+
If you have any questions, feel free to [contact Dynamsoft support](https://www.dynamsoft.com/company/contact?utm_source=sampleReadme).

0 commit comments

Comments
 (0)