combineReducers使用

  • Post author:
  • Post category:其他


import {combineReducers} from ‘redux’ //可以将小的reducer合并在一起

import headerReducer from ‘…/common/header/store/reducer’

export default combineReducers({


header:headerReducer

})

可以将reducer按模块拆分后,用combineReducers合并在一起



版权声明:本文为wangjjz原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。