Folder structure client

A common code structure of Redux is to place all actions in the actions folder, all reducers in the reducers folder, and all the action types defined as constants in the constants folder:

As I mentioned earlier, Redux has only one store for the entire application. The store will persist the entire state as one big JavaScript object. We can think of the store as one MongoDB collection. When the app grows in functionality, managing the state with one reducer function becomes very difficult.

We can split the functionality of the store by creating many reducers that are exported and combined into one single reducer function. ...

Get Build Applications with Meteor now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.