年后第一周用 React Hooks 重构了两个项目并把总结记录了下来。总结了重构流程和技巧,还有一些遇到的坑和建议,具体可以用“梯子”看
I ’ ve completely rewritten two projects with React Hooks, here is the good and the ugly.
Table of Contents:
- Introducing React Hooks resources
- The benefit you can get from React Hooks
- APIs you ’ ll be frequently used
- Get started
-
- Update ReactJS
-
- Install the ESLint Plugin
-
- Turn a Class Component into a React Function with React Hooks
-
- Let ’ s do one more refactoring
-
- How about integrating with third-party libraries?
-
- Fix code minify issue
- Summary