React 学习之路

262 阅读1分钟

将自己经常看的学习资源汇总一下,有志于学习 React 的同学可以参考~

持续更新中~

React

encapsulate、reusable:

  • Action Creators
  • Selectors
  • React-ReduxconnectmapState, and mapDispatch

decouple

  • Action Creators: Action creators let you decouple additional logic around dispatching an action, from the actual components emitting those actions

compositon

  • reducer composition
  • Middleware:Middleware is composable using function composition
  • store enhancer

Redux、Redux ToolKit

redux-thunk

redux-thunk GitHub 项目 readme 写的非常好,里面有一些链接,看这个肯定就能理解了。如果对 redux 如何应用中间件有疑惑,可以参考我的文章 juejin.cn/post/712796… 或者直接去看 redux 的源码。

其他状态管理

数据请求

  • React Query
  • SWR

UI 框架

视频

链接