File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ And that render was called immediately after triggering the setState method. But
1919Well, it turns out React does not understand and thus cannot control code that doesn't live inside the library.
2020Timeouts 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
2424make sure the code that follows has access to the latest information available.
2525
2626``` javascript
You can’t perform that action at this time.
0 commit comments