I’m using React with Redux and React-Redux. I wonder where is the appropriate place to make presentation calculations - in the container or in the presnetational component. Should I make all the calculations in the mapStateToProps and then serve all the props ready to the component, keeping the component as dump as possible, or should I keep mapsStateToProps as a simple bridge between the state and the presentational component, and keep calculations in the component itself?
carpben (Ben Carp) #1
sesteva (Sesteva) #2
Check selectors on redux docs. It talks about computed derived data. I think that should help you.