-
-
Notifications
You must be signed in to change notification settings - Fork 2.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-no-bind circumventable via Short-Circuit Evaluation #474
Comments
Similarly, I've noticed that |
@ljharb I assume |
@iilei yes it is - no functions should be created in the entire render path and passed as props, which is what this rule is attempting to prevent. |
I see ... @petersendidit 👍 |
example code
myHandler={true && this.myHandler.bind(this, key)}
results in no warnings, while I would expect it to throw error JSX props should not use .bind() react/jsx-no-bindIs this a bug or am I missing something?
The text was updated successfully, but these errors were encountered: