aweary/react-is-deprecated

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

Aperta

#6 aperta il 24 ago 2017

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (6 fork)github user discovery
help wanted

Metriche repository

Star
 (44 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor