dillon1000/react

Commit

docs better indicate that state updaters shallowly merge with state (#9554)

this was a surprise to me because the docs seemed to indicate that when
using an updater, the result _needed_ to be a new state object. I was
[not alone](https://twitter.com/ken_wheeler/status/857939690191806464)
i think in discovering this as a result of the previous tweet in the
thread.
Browse files
Changed paths1 file
First-parent comparison
M docs/docs/reference-react-component.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…