react開發技巧:redux-devTools配置
reducer.js的拆分和整合;
每個組件中都建立一個store ,然後在最外層store中合併所有的store
import { combineReducers } from 'redux'
import headerReducer from '../common/header/store/reducer'
const reducer = combineReducers({
header: headerReducer
})