使用react-router-redux,我有代码:
const reducers = combineReducers({
...counterReducer,
routing: routerReducer
})
const store = createStore(reducers, {initialState: 10})
const history = syncHistoryWithStore(browserHistory, store)
console.log(store.getState())
输出如:
为什么我没有在州内获得{initialState:10}?