4 ms·
I originally tried this but then discovered combineReducers() this will allow you to organise your reducers into a single import. I found it a more sane way to
by kumaraman 10y ago
I originally tried this but then discovered combineReducers() this will allow you to organise your reducers into a single import. I found it a more sane way to organise all of my reducers, as the majority of them were small. Here's a link for API http://redux.js.org/docs/api/combineReducers.html http://redux.js.org/docs/api/combineReducers.html
- jamra 10y agoThat would combine your reducers into one. I believe he was referring to putting action creators in the same file as their associated reducers.