combineReducers

可以在子reducer中使用combineReducers,把子reducer中的多個reducer合併,然後再在最外層通過combineReducers處理子reducer(被combineReducers處理過的),即combineReducers可以嵌套combineReducers,combineReducers中的key值就是對應key值後的reducer函數中return的state,
相關文章
相關標籤/搜索