📄️ Redux 概念简述
打开react官网, 你会看到这么一句话:
📄️ Redux 工作流程
创建action => 发送action => 修改小本本
📄️ 使用Antd实现TodoList的页面布局
ant design是react的一个UI组件库
📄️ 创建store并从store里取数据
创建store
📄️ 让store支持redux dev tools
安装开发调试工具Redux DevTools
📄️ Action和Reducer的编写
前面我们已经实现了一个从store中获取数据,并将数据在组件``中展示的案例
📄️ 使用Redux完成TodoList的删除功能
现在我们有个需求:点击item的时候,item会被自动删除
📄️ ActionTypes的拆分
在 Todolist组件中,我们要不断的去派发action,每个action都有自己的类型,叫做type
📄️ 使用actionCreator统一创建action
回顾redux的流程图
📄️ Redux知识点复习补充
redux的设计使用原则