Skip to content

defaultProps rule to be deprecated on function components #2396

Closed
@amypellegrini

Description

@amypellegrini

defaultProps on function components is getting deprecated by React (see: facebook/react#16210)

For this rule to follow suit, it should only be triggered when missing from class components.

The official recommendation in future versions of React is to use ES6 default values for function 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