将自己经常看的学习资源汇总一下,有志于学习 React 的同学可以参考~
持续更新中~
React
- 书籍《React 学习手册》
- Robin Wieruch 的电子书 《The Road to React》
- Robin Wieruch 的 blog:www.robinwieruch.de/blog/
- Dave Ceddia 的 blog:daveceddia.com/archives/
- 文档:reactjs.org/docs/gettin…
- 新文档:beta.reactjs.org/learn
encapsulate、reusable:
- Action Creators
- Selectors
- React-Redux:
connect
,mapState
, andmapDispatch
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.js.org/introductio…
- 文档 Reducing Boilerplate:redux.js.org/usage/reduc…
- Idiomatic Redux: The Tao of Redux, Part 1 - Implementation and Intent:blog.isquaredsoftware.com/2017/05/idi…
- Idiomatic Redux: The Tao of Redux, Part 2 - Practice and Philosophy:blog.isquaredsoftware.com/2017/05/idi…
- Add counter-vanilla example #1289:github.com/reduxjs/red…
- Redux Core Example App:redux.js.org/tutorials/f…
- 关于 Switch Statements:github.com/reduxjs/red…
- github.com/reduxjs/red…
- 关于 time trivaling、undo:
- Proposal: declarative reducers #1024:github.com/reduxjs/red…
- Redux's relation to cursors #155:github.com/reduxjs/red…
- Add basic middleware api to default dispatcher #63:github.com/reduxjs/red…
redux-thunk
- github.com/reduxjs/red…
- daveceddia.com/what-is-a-t…
- daveceddia.com/where-fetch…
- stackoverflow.com/questions/3…
- stackoverflow.com/questions/3…
redux-thunk GitHub 项目 readme 写的非常好,里面有一些链接,看这个肯定就能理解了。如果对 redux 如何应用中间件有疑惑,可以参考我的文章 juejin.cn/post/712796… 或者直接去看 redux 的源码。
其他状态管理
数据请求
- React Query
- SWR