Skip to content

Commit f66aae9

Browse files
authored
Merge pull request #381 from aacismaharjan/issue#253_fix_react_automatic_batching_example
fix: correct event handler name in React batching example
2 parents 026b129 + 91f42ed commit f66aae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5988,7 +5988,7 @@ class ParentComponent extends React.Component {
59885988

59895989
console.log("Application Rendered");
59905990

5991-
const handleUsers = () => {
5991+
const handleAsyncFetch = () => {
59925992
fetch("https://jsonplaceholder.typicode.com/users/1").then(() => {
59935993
// Automatic Batching re-render only once
59945994
setCount(count + 1);

0 commit comments

Comments
 (0)