4 ms·
> At that point the recommended approach is to replace the entire component by using the key property. Where did you hear that? React.Component has both props
by lucasmullens 5y ago
> At that point the recommended approach is to replace the entire component by using the key property.
Where did you hear that? React.Component has both props and state and both seem to work pretty well together, and you definitely don't need to destroy the component by changing the key property just because props changed.
- flowerlad 5y ago> Where did you hear that? 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...