DEV Community

loading...

Discussion on: Is it true that components in a ReactJS app should be divided into container components and presentational components?

Collapse
alidhuniya profile image
Ali Hussain Dhuniya

so far what I understood from Dan Ambrov article is that hooks replace these design components pattern. In react hooks we have both view and logic separated in one functional component. If you're not using hooks then sure this design patterns helps especially in bigger project. container component separate logic from jsx like if your component have state,lifecycle, logic while view compoenent is to show props and information that's it and don't have any state,life-cycle