4 ms·
> "in my experience they're overused and React component state is underused" Thank you, I've felt the same way. A lot of projects take "ALL STATE MUST BE IN TH
by nathancahill 10y ago
> "in my experience they're overused and React component state is underused"
Thank you, I've felt the same way. A lot of projects take "ALL STATE MUST BE IN THE STORE" to an extreme.
- sotojuan 10y agoWhich is funny because you'll never hear that from Dan or any other authors.
- nathancahill 10y agoikr
- eweise 10y agoIMO its no more trouble to put state in a redux store than in the component directly and doing so makes my components more consistent. I'm not a react guru though so maybe I'm missing something.
- nathancahill 10y agoEh, sometimes state isn't relevant outside of a component, so while you could put it in a store, it's possibly better to put it in the component. Single responsibility.