知识点-redux

  • compose 作用

compose(funcA, funcB, funcC) 形象为 compose(funcA(funcB(funcC()))))

  • connect 即将state映射到 UI 组件的参数(props),用于从 UI 组件生成容器组件m

applyMiddleware

  • createStore

store存储状态数据, 可以subscribe state变化

store.dispatch

reducer 接收 state action 处理数据

  • action 基本不做什么只是 表意(表达 action的发生)

详情前往 https://github.com/my19940202/edm_compt/blob/master/src/TodolistRedux.jsx

results matching ""

    No results matching ""