1 2 3 4 5 6 7 8 9 | 9x 9x 9x | import createModelReducer from './model/modelReducer' import {combineReducers} from 'redux' export default (models) => { const reducers = {}; models.forEach(model => reducers[model.modelName] = createModelReducer(model) ) return combineReducers(reducers) } |