Skip to content

Would it be better to use defaultProps instead of defaultProp in warning? #2063

@billychan

Description

@billychan

The warning message for defaultProps are:

 'propType "{{name}}" is required and should not have a defaultProp declaration.',
 'propType "{{name}}" is not required, but has no corresponding defaultProp declaration.',

A bit confusing when reading, since defaultProps is the valid method name. Maybe better to replace that?

Thanks

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