Skip to content

jsx-no-bind - active for custom components only #413

Closed
@janmarek

Description

@janmarek

Hi.

I'd like to use this rule to avoid problem with shouldComponentUpdate mentioned in this article https://medium.com/@esamatti/react-js-pure-render-performance-anti-pattern-fb88c101332f#.i77y134gm (section Functions create identities too).

But this is only a problem on custom components. HTML elements like or so don't have shouldComponentUpdate, so binding functions is much smaller problem there.

Currently I have 126 jsx-no-bind warnings in my app and I'd like to fix the important ones first. It'd nice to be able to turn this check on custom components only (their names start with a capital letter).

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions