Skip to content Skip to sidebar Skip to footer

Can A Dumb Component Use/render Redux Container Component?

In the getting started video of Redux we see that the Footer (a dumb component) uses Filterlink (a container). But when I read this article, it seems, but not very clearly, that on

Solution 1:

The article was somewhat out of date with how I think about it today. I just updated it so you can read it again with the fresh perspective. I’ve come to the opinion that it’s totally fine to use container components inside presentational components. The reason for this is simple: you want to be able to turn a presentational component into a container component at any time it needs too much information, and it would be a bummer if you had to convert all call sites when you do that. Therefore whether a component is presentational or a container is its implementation detail, and any components, whether presentational or containers, can use it just fine.


Post a Comment for "Can A Dumb Component Use/render Redux Container Component?"