Skip to content

Unnecessary renders due to creating an anonymous function in the prop #125

Open
@landonreed

Description

@landonreed

We should rewrite this so that this handler is not re-created in the render function.

onClick={() => this.setDepartArrive(opt)}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions