Skip to content

react/jsx-key doesn't detect Array.from #3368

@Janpot

Description

@Janpot

react/jsx-key doesn't detect a specific case where an iterable is mapped using Array.from:

const mySet = new Set() // ... // Should warn for missing key property, but doesn't Array.from(mySet, () => <div />) 

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