My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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-r..

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-comp..) 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.