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
parent
commit
c77e2f2422
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/blog/2022-03-29-react-v18.md

2
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);

Loading…
Cancel
Save