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

Day330:为什么 React useState 要使用数组而不是对象? #1160

Open
Genzhen opened this issue Jun 29, 2021 · 1 comment
Open

Day330:为什么 React useState 要使用数组而不是对象? #1160

Genzhen opened this issue Jun 29, 2021 · 1 comment
Labels
React teach_tag

Comments

@Genzhen
Copy link
Collaborator

Genzhen commented Jun 29, 2021

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

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

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

@Genzhen Genzhen added the React teach_tag label Jun 29, 2021
@DaphnisLi
Copy link

官方在对比依赖的时候是采用for循环的方式,然后用is来对比依赖,用数组,而不是用对象应该是数组使用起来更方便一点吧

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