26

为什么我们要添加 super(props) ?

 5 years ago
source link: https://juejin.im/post/5c5fde85f265da2dab17a7d5
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
我听说 Hooks 成了新的焦点。但是呢,我想通过这篇博客来介绍下class声明组件有趣的地方。意下如何? 下面内容无法提高你的React使用技巧。但是,当你深入探究事物是如何运行时,将会发现它们所带来的喜悦之情。 首先来看看第一个例子。 我写super(p

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK