bprw / nimbl3-challenge

Nimbl3's Technical Challenge
0 stars 0 forks source link

React architecture #1

Open olivierobert opened 7 years ago

olivierobert commented 7 years ago

Why placing all actions and reducers in each containers instead having an action and reducer folder in the root diectory?

bapairaew commented 7 years ago

It is a pattern that I have been using in other projects which slices actions/reducers/constants for each page and then combine them with combineReducer at the top level. This makes all those parts much more smaller and easier to maintain. However, there is only one page in this particular case so doing the way you suggest is okay too.