V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
unbug
V2EX  ›  前端开发

用 React Hooks 重构两个项目后的详细总结

  •  
  •   unbug · 2019-02-22 14:00:41 +08:00 · 378 次点击
    这是一个创建于 1861 天前的主题,其中的信息可能已经有所发展或是发生改变。

    年后第一周用 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
        1. Update ReactJS
        1. Install the ESLint Plugin
        1. Turn a Class Component into a React Function with React Hooks
        1. Let ’ s do one more refactoring
        1. How about integrating with third-party libraries?
        1. Fix code minify issue
    • Summary
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5497 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:24 · PVG 16:24 · LAX 01:24 · JFK 04:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.