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

Day353:React Hooks 解决了什么问题?其原理是什么(以 useEffect 为例)?useMemo 和 useCallback 差别? #1184

Open
Genzhen opened this issue Jul 28, 2021 · 2 comments
Labels
React teach_tag

Comments

@Genzhen
Copy link
Collaborator

Genzhen commented Jul 28, 2021

每日一题会在下午四点在交流群集中讨论,五点小程序中更新答案
欢迎大家在下方发表自己的优质见解

二维码加载失败可点击 小程序二维码

扫描下方二维码,收藏关注,及时获取答案以及详细解析,同时可解锁800+道前端面试题。

@Genzhen Genzhen added the React teach_tag label Jul 28, 2021
@DaphnisLi
Copy link

Hooks解决了问题:状态拆分。组合 > 继承

@DaphnisLi
Copy link

这个问题本身就有问题,应该是问函数组件和class组件的区别

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

No branches or pull requests

2 participants