-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
JSX中的列表常量不能与state中的成员重名 #411
Labels
bug
Something isn't working
Comments
系 #318 问题的重现 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
解决了没 |
这个 bug 有更新吗? |
没有,我们可能会写一条 eslint 插件禁用掉这个写法 |
good job |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
在render方法中,使用 const 声明一个列表变量,然后在后面使用,该变量与state中的成员重名时,列表不会渲染
复现步骤
期望行为
Picker能正常显示
报错信息
没有显示任何信息, 将
const packages
改成其他名称就可以正常显示了系统信息
补充信息
编译时可能需要对变量重新命名,或者添加一条 eslint 规则?
The text was updated successfully, but these errors were encountered: