Created
June 26, 2019 10:15
-
-
Save Archakov06/1891c9122f219200046200f026e12606 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { combineReducers } from 'redux'; | |
const reducers = ['channels', 'bots', 'posts', 'user']; | |
export default combineReducers( | |
reducers.reduce((initial, name) => { | |
initial[name] = require(`./${name}`).default; | |
return initial; | |
}, {}), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment