Skip to content

Should stateless functions be declared using named function statements? #5618

@xixixao

Description

@xixixao

Arrow function syntax is suggested in the docs, but components declared using it don't have a proper name (say in react-dev-tools), StatelessComponent is used instead. I guess this could be an issue when debugging?

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