基本概念

基本概念

Action,Reducer,Store

Action

  描述具体的执行动作,执行的数据载体

Reducer

  根据 action 更新 state

Store

  • 维持应用的 state;
  • 提供 getState() 方法获取 state;
  • 提供 dispatch(action) 方法更新 state;
  • 通过 subscribe(listener) 注册监听器。

  

posted @ 2016-08-30 08:35  小宝贝来qin一个  阅读(105)  评论(0编辑  收藏  举报