...

/

Container and Component Folder Structure

Container and Component Folder Structure

As a part of Redux convention, we will move our files into two main directories. The Container folder will contain all the components which interact with Redux directly. The other components will be moved to the Component folder.

We'll cover the following...

There’s a bit of refactoring you need to do before we move on to coding the Skypey application.

In Redux applications, it is a common pattern to split your components into two different directories. Every component that talks directly to Redux, whether that is to retrieve state from the store, or to dispatch an action, these components should be moved to a containers directory.

Other components, those that do NOT talk to Redux, should be moved over to a components directory.

Well, well, ...