Redux

特性

  • Single source of truth

  • 可预测性:state + action = newState

  • 纯函数更新 store

Store

  • getState()

  • dispatch(action)

  • subscribe(listener)

最后更新于