个人开发没影响,但是团队开发够呛。函数式编程只适合个人英雄主义的开发者,类才适合团队。因为类具有有形的API,函数式依靠无形的概念和规范。因此我觉得React Hooks是一个巨坑。
- https://mp.weixin.qq.com/s/LrwPFDK2YCjcxAfw79N9Tg
- https://mp.weixin.qq.com/s/968ukIjEhhEOeLD5SQoKaw
- https://www.zhihu.com/question/338443007/answer/773530095
- https://blog.csdn.net/qq_41384351/article/details/90048454
- https://mp.weixin.qq.com/s/YEs5nH4aOAxOPYuW8oVlBA
- https://segmentfault.com/a/1190000020120456
- https://itnext.io/optimizing-react-code-with-hooks-3eaaf5978351