我已经开始使用https://github.com/react-boilerplate/react-boilerplate对代码做出反应。 我只是想从https://github.com/cornflourblue/react-redux-registration-login-example
添加登录和注册但我遇到有两个系统的商店,我必须将它们合并。
我只是在configureStore.js(样板文件)中添加一些代码
const store = createStore(
createReducer({
authentication, // from second project reducer
registration, // from second project reducer
users, // from second project reducer
alert // from second project reducer
}),
fromJS(initialState),
composeEnhancers(...enhancers)
);
但合并的减速机不起作用。