redux的合併多個reducer

//建立store須要傳入reducer createStore(reducer, preloadedState, enhancer) //reducer是一個函數,傳入當前state和action,返回新的state // (preState, action) => nextState 當咱們須要將多個reducer合併成一個時javascript combineReducers({ app:
相關文章
相關標籤/搜索