Redux总结

1、 createStore 创建 store 对象,包含 getState, dispatch, subscribe, replaceReducer reducer reducer 是一个计划函数,接收旧的 state 和 action,生成新的 state action action 是一个对象,必须包含 type 字段 dispatch dispatch( action ) 触发 actio
相关文章
相关标签/搜索