Skip to content

Warn when using PropTypes.instanceOf incorrectly #1582

@sophiebits

Description

@sophiebits

Someone here wrote

React.PropTypes.instanceOf(React.PropTypes.object).isRequired

instead of

React.PropTypes.object.isRequired

Would be nice if we could give some sort of warning here; not sure if it's possible though.

cc @zgotsch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions