Reducer:
- 将 state 分类管理;
- 根据 action type, return 一个新的 state;
Action:
- return 一个 object, type 是必需属性;
- Action 要为 pure function;
- 如果要调用 async function, 要使用 Thunk, return 一个 async 的 function, 它接收 dispatch 和 getState 作为参数;
Dispatch:
- 调用 action, 将事件广播给所有 Reducer;
mapDispatchToProps:
- 将dispatch(action) 映射到 props;
- Return 一个 函数的集合;