Skip to content

Commit d0057c9

Browse files
authored
Merge pull request #100 from coryhouse/patch-1
Grammar fixes
2 parents 3c5a6c8 + 766efe0 commit d0057c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patterns/19.async-nature-of-setState.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ And that render was called immediately after triggering the setState method. But
1919
Well, it turns out React does not understand and thus cannot control code that doesn't live inside the library.
2020
Timeouts or AJAX calls for example, are developer authored code that executes outside of the context of React.
2121

22-
So why does React synchronously updated the state in these cases? Well, because it's trying to be as defensive as possible.
23-
Not being in control means it's not able to do any perf optimisations so it's better to update the state on spot and
22+
So why does React synchronously update the state in these cases? Well, because it's trying to be as defensive as possible.
23+
Not being in control means it's not able to do any performance optimisations so it's better to update the state on spot and
2424
make sure the code that follows has access to the latest information available.
2525

2626
```javascript

0 commit comments

Comments
 (0)