2 ms·
> Where do you find this recommendation? https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html#recommendation-fully-uncontrolled-compon
by interlocutor 4y ago
> Where do you find this recommendation?
https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html#recommendation-fully-uncontrolled-component-with-a-key https://reactjs.org/blog/2018/06/07/you-probably-dont-need-d...
> keys are usually only used for repeating sets of elements
Not true at all!
- Lutger 4y agoFrom the blog you posted: > In most cases, this is the best way to handle *state that needs to be reset* You are talking about updating state, react author is talking about resetting. That's a big difference.