Skip to content

New rule to avoid prop value with array or object creation in render #1633

Open
@jer-sen

Description

@jer-sen

There is a rule for prop value with function creation (bind, function(...), or arrow function): react/jsx-no-bind
But I can't find a rule for array ([]) or object ({}) creation.

It would be useful since it would help to avoid useless renders of pure components.

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