react-router-redux如何通过初始状态?

时间:2016-12-30 07:26:07

标签: redux react-router react-redux react-router-redux

使用react-router-redux,我有代码:

const reducers = combineReducers({
  ...counterReducer,
  routing: routerReducer
})

const store = createStore(reducers, {initialState: 10})
const history = syncHistoryWithStore(browserHistory, store)

console.log(store.getState())

输出如:

enter image description here

为什么我没有在州内获得{initialState:10}?

0 个答案:

没有答案