2022-2-21 day12 重写useSelector

42 阅读1分钟

image.png

注: 可以通过这种方式获取state的类型

image.png

useAppSelector重写useSelector,定义state的类型