Allow components to export an object containing multiple reducers
This allows a component to export something like this:
module.exports = {
frontend: {
reducers: {
foo: () => require('./reducers/foo'),
bar: () => require('./reducers/bar'),
}
},
}
where foo
and bar
are the keys of the reducers in the redux store.