Redux的特点
- 统一的状态管理,一个应用中只有一个仓库(store)
- 仓库中管理了一个状态树(statetree)
- 仓库不能直接修改,修改只能通过派发器(dispatch)派发一个动作(action)
- 更新state的逻辑封装到reducer中
参考链接:
https://www.jianshu.com/p/786e7174b0c2
https://www.redux.org.cn/docs/basics/ExampleTodoList.html
Redux的特点
参考链接:
https://www.jianshu.com/p/786e7174b0c2
https://www.redux.org.cn/docs/basics/ExampleTodoList.html