4 ms·
IMO 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 thou
by eweise 10y ago
IMO 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.