Browse Source
Fix typo in Automatic Batching example (#4532)
Co-authored-by: sanghyupjeong-29cm <hyupee@29cm.co.kr>
main
Sanghyup Jeong
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/blog/2022-03-29-react-v18.md
|
|
@ -87,7 +87,7 @@ setTimeout(() => { |
|
|
|
}, 1000); |
|
|
|
|
|
|
|
// After: updates inside of timeouts, promises, |
|
|
|
// native event handlers or any other event are batched.` |
|
|
|
// native event handlers or any other event are batched. |
|
|
|
setTimeout(() => { |
|
|
|
setCount(c => c + 1); |
|
|
|
setFlag(f => !f); |
|
|
|