Skip to content

ReactTransitionGroup requires key to fire hooks #1488

@jhsware

Description

@jhsware

In lists it is pretty obvious why we need to set the keys. If ReactTransitionGroup has a single child node then it is not as obvious that the key is needed. And it is not mentioned in the docs.

So either it is a documentation issue or a code issue. In my opinion it would be more intuitive if key is optional when the ReactTransitionGroup only has a single child. At least it would be nice if it throws a warning during JSX-transformation.

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