create-react-app 组件化开发 jsx 开发调试 虚拟dom 生命周期 react-transtion-group
- 官网: https://ant.design/docs/react/getting-started-cn
yarn add antd
- Store 的创建
yarn add redux
- 创建store
- store必须是唯一的
- 只有store能改变自己的内容
- reducer可以接收state,但是不能改变state
- 纯函数指的是,给固定的输入,就一定会有固定的输出,而且不会有副作用
- Redux中核心的API
1. createStore
- store.dispatch() 派发action,传递给store
- store.getState() 获取store中的所有数据内容
- store.subscribe() 订阅store中的改变,只要store发生改变,store的接收函数就会发生改变
- yarn add redux-thunk
- yarn add redux-saga
- yarn add react-redux
- create-react-app jianshu