Skip to content

Commit 9a95385

Browse files
authored
Add more references to setState batching (reactjs#583)
1 parent 0b805a8 commit 9a95385

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/docs/reference-react-component.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,11 @@ this.setState((prevState) => {
367367
});
368368
```
369369

370-
For more detail, see the [State and Lifecycle guide](/docs/state-and-lifecycle.html).
370+
For more detail, see:
371+
372+
* [State and Lifecycle guide](/docs/state-and-lifecycle.html)
373+
* [In depth: When and why are `setState()` calls batched?](https://stackoverflow.com/a/48610973/458193)
374+
* [In depth: Why isn't `this.state` updated immediately?](https://github.com/facebook/react/issues/11527#issuecomment-360199710)
371375

372376
* * *
373377

0 commit comments

Comments
 (0)