ZJ前端面试:
1、简述redux数据流
store、components、actionCreaters、reducers的关系为:
- 首先有一个组件,组件要去获取store中的一些数据
- actionCreaters通过dispatch(action)方法 让store知道 组件要获取数据
- store在reducer查组件需要什么数据,reducer返回组件应该拿到的数据
- store获得数据后把数据 返给 组件
2、antd如何改样式
3、权限问题
4、conenct方法,介绍里面几个函数的作用
上面state的状态返回给props,然后页面可以从props里面去取