in the past (without hooks), isn't it true that we can also get by if we use connect and just directly connect to LoremComponent? In the past we didn't have to use a container... but I guess if it is like a component that has 3 other components, then it makes sense to have a container...
but even so... the container can just be a presentational container... and contain 3 stateful components...
or maybe it the past, it means, to always use stateful components (to be container components), and purely non-stateful component (to be presentational components)...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
To be true is approach is a little bit outdated when you are using hooks. Introducing hooks was breaking this rule as hooks are our "containers".
In old approach we separate concerns in this way:
Now when we are using hooks we are using something like:
Summary:
We replace container-component technique in favor of using hooks but we still use separating concerns
in the past (without hooks), isn't it true that we can also get by if we use
connect
and just directly connect toLoremComponent
? In the past we didn't have to use a container... but I guess if it is like a component that has 3 other components, then it makes sense to have a container...but even so... the container can just be a presentational container... and contain 3 stateful components...
or maybe it the past, it means, to always use stateful components (to be container components), and purely non-stateful component (to be presentational components)...