aweary/react-is-deprecated

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

Ouverte

#6 ouverte le 24 août 2017

 (2 commentaires) (0 réaction) (0 personne assignée)JavaScript (6 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (44 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur