You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As your app scales you'll find that having a long list of files and resources in the components directory will be increasingly cumbersome and difficult to navigate.
It's a good practice to separate out your components based on how they are used: pages, charts, etc, etc. You'll often find that most apps will have a components directory for the "lowest level" or "dumb components", and a containers directory for pages and "composed" level components.
There's no hard an fast rule, but organizing all your components by type, and even into their own named directory, will make your code structure significantly easier to navigate as you scale.
"Containers" is common due to the early belief that connecting to redux was done at the App or parent/page level as a best practice. Nowadays it's best practice to connect at the lowest component level possible. However the component & containers naming conventions are still widely used as the standard, especially when using Redux.
The text was updated successfully, but these errors were encountered:
As your app scales you'll find that having a long list of files and resources in the
components
directory will be increasingly cumbersome and difficult to navigate.It's a good practice to separate out your components based on how they are used:
pages
,charts
, etc, etc. You'll often find that most apps will have acomponents
directory for the "lowest level" or "dumb components", and acontainers
directory for pages and "composed" level components.There's no hard an fast rule, but organizing all your components by type, and even into their own named directory, will make your code structure significantly easier to navigate as you scale.
"Containers" is common due to the early belief that connecting to redux was done at the
App
or parent/page level as a best practice. Nowadays it's best practice to connect at the lowest component level possible. However thecomponent & containers
naming conventions are still widely used as the standard, especially when using Redux.The text was updated successfully, but these errors were encountered: