Skip to content

Warn when using PropTypes.instanceOf incorrectly #1582

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

Activity

  1. sophiebits commented on Apr 1, 2015

    @sophiebits
    ContributorAuthor

    Haven't heard other complaints of this so I'll close. Would consider a PR though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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