Move container components to components directory #4478
Labels
technical-work
Technical debt, support work and building new technical tools and features
Milestone
After this issue is completed we should move all components located in the containers directory into the components directory.
The WS team's definition of a container component is basically any component that contains business logic. When all business logic is moved out of components and into
getInitialData
then we should relocate these components.This will also have the added benefit of aligning with the rest of the industry's definition of a container component that is the separation of side-effects (data-fetching, state-management) from presentation. This pattern is also not recommended anymore as highlighted in this article https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0
Things to consider
Remove any reference in the code to containers e.g.
MetadataContainer
rename toMetadata
Related #3003
The text was updated successfully, but these errors were encountered: