News for hackers. Stuff that matters.
Re:Build Yourself a Redux by rhinoceraptor on Friday May 05, 2017 @12:56PM (#14274890)
Redux gives you a combineReducers() function for splitting your reducers into separate files. The way I structure it is by which section of the state object they modify, so that I have a reducers/stateA.js, reducers/stateB.js, which correspond to a state object that looks like { stateA: { ... }, stateB: { ... } }.

There are no comments on this comment yet.