2 ms·
You can make that effort of thinking the component architecture ahead and that will definitely help. To be honest I was thinking more about props that you'll kn
by ruimagalhaes 9y ago
You can make that effort of thinking the component architecture ahead and that will definitely help. To be honest I was thinking more about props that you'll know will live inside a component but end up on the redux store anyway. I made this mistake with forms on my first react native app by having any field value on the store. I didn't really need to that and the store got bigger and bigger because of that first choice.
- jrochkind1 9y agoThen we also get the opposite advice, above, _don't_ think about your component architecture when defining state! "Define your state shape in terms of your domain data and app state, not your UI component tree."