Browse Source

Add more references to setState batching (#583)

main
Dan Abramov 7 years ago
committed by GitHub
parent
commit
9a953858d6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      content/docs/reference-react-component.md

6
content/docs/reference-react-component.md

@ -367,7 +367,11 @@ this.setState((prevState) => {
});
```
For more detail, see the [State and Lifecycle guide](/docs/state-and-lifecycle.html).
For more detail, see:
* [State and Lifecycle guide](/docs/state-and-lifecycle.html)
* [In depth: When and why are `setState()` calls batched?](https://stackoverflow.com/a/48610973/458193)
* [In depth: Why isn't `this.state` updated immediately?](https://github.com/facebook/react/issues/11527#issuecomment-360199710)
* * *

Loading…
Cancel
Save