aweary/react-is-deprecated

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

开放

#6 创建于 2017年8月24日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (6 个派生)github user discovery
help wanted

仓库指标

星标
 (44 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南