📜  组合减速器. - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:28.090000             🧑  作者: Mango

代码示例1
rootReducer = combineReducers({potato: potatoReducer, tomato: tomatoReducer})
// This would produce the following state object
{
  potato: {
    // ... potatoes, and other state managed by the potatoReducer ...
  },
  tomato: {
    // ... tomatoes, and other state managed by the tomatoReducer, maybe some nice sauce? ...
  }
}