aweary/react-is-deprecated

Doesn't work with new 'prop-types' library

Open

#6 opened on Aug 24, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (6 forks)github user discovery
help wanted

Repository metrics

Stars
 (44 stars)
PR merge metrics
 (PR metrics pending)

Description

In the addIsDeprecated wrapper you iterate over all properties on the PropTypes object and call .bind() for each property. However, in the new prop-types library they added a self-reference of PropTypes into the PropTypes object which causes it to break since it's not a function. There is also a checkPropTypes which may also be problematic.

You can view their source here

Contributor guide