Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加入使用 React Hook 的示例代码 #1082

Closed
BeiyanYunyi opened this issue Sep 14, 2021 · 1 comment
Closed

加入使用 React Hook 的示例代码 #1082

BeiyanYunyi opened this issue Sep 14, 2021 · 1 comment

Comments

@BeiyanYunyi
Copy link

BeiyanYunyi commented Sep 14, 2021

#1080
React 16.8 更新加入了 Hook 功能,使原有的类组件不再那么流行,函数式组件大行其道。函数式组件无法调用类组件的生命周期方法,而需要以 Hook 取而代之。类组件,以及组件的生命周期方法对新学习 React 的开发者而言已是比较陌生的概念。因此希望更新原有的 React 代码示例为函数式组件+ hook 的示例,或新增一示例。

@88250
Copy link
Collaborator

88250 commented Jan 20, 2022

欢迎 PR。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants