Skip to content

react/jsx-no-bind: why refs and arrow functions are allowed? #801

@alex35mil

Description

@alex35mil

In the 3.x.x this rule was turned on. Reasoning is clear and makes a perfect sense. But this commit doesn't make sense to me. Why refs and arrow functions are allowed, while bind is not? New arrow functions are being created on each re-render and they !== to each other, so what's the point of this rule with this change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions