Sign in
Log inSign up

How do you think in React & Redux?

Matt Goldwater's photo
Matt Goldwater
·Aug 23, 2017

I recently learned Redux and I'm wondering how to combine thinking in Redux with the guidelines of the Reacts docs for thinking in React? facebook.github.io/react/docs/thinking-in-…

My initial instinct is that you'd have to think through step 4 differently since some state would be in the Redux store rather than say placing components higher up the component chain.

The thing I'm having trouble with is how to plan container vs presentational components. (medium.com/@dan_abramov/smart-and-dumb-com…) Would you have to wait to plan your container components until step 5 since you don't know where your state would lie until then?

Is this how you've incorporated Redux into thinking in React? I'd also be curious if anyone uses a different template from the one in the docs to think in React / Redux that they've found works for them and could explain why.