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

关于 “[建议]使用@autobind进行事件处理方法与this的绑定” #42

Open
errorrik opened this issue May 31, 2017 · 2 comments

Comments

@errorrik
Copy link
Contributor

不如直接禁止在模板中使用动态函数,然后下面推荐两种写法?

@otakustay
Copy link
Member

有这一条补充:

[建议]避免在JSX的属性值中直接使用对象和函数表达式。

其实不仅仅是函数,对象、数组等等都会引起同样的问题,是否要将2条合并在一起?

@errorrik
Copy link
Contributor Author

合并吧,解释的详细点就好了

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