9 ms·
Thanks for the advice. Do you agree a potential optimization would be using React component state instead of store state?
by pspeter3 9y ago
Thanks for the advice. Do you agree a potential optimization would be using React component state instead of store state?
- mikewhy 9y agoYou should use React.PureComponent whenever possible. And stateless functions always re-render. There's no chance of using "shouldComponentUpdate". Using store state vs local state shouldn't matter much, as long as your components are pure and only pull what they need from the store.