Skip to content

Put containers and components in a single folder

Jared Pereira requested to merge reorganizeContainers into master

This does not add any code but changes the structure of the app so that containers (component which map redux state and actions to props) are in the same folder as the other components.

Any component that interacts with the redux store is put into a folder with the container as the index.js file. This means that wherever that component is used it can just be imported with components/<componentName>.

In addition some files are renamed to have more concise name, in many cases dropping App, Box, and occasionally View.

One downside to this organization is that importing actions into container components can require several levels of folder jumping i.e (../../../actions).

Merge request reports