Skip to content

React Style Guide question: bind and arrow functions in render #1995

@dartess

Description

@dartess

https://github.com/airbnb/javascript/tree/master/react#methods

Using bind is bad. Why? A bind call in the render path creates a brand new function on every single render. And we should use arrow functions. But, AFAIK, arrow functions also creates a brand new function on every single render. What I do not understand?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions