React.PropTypes has moved into a different package since React v15.5. Please use the prop-types library instead.
https://reactjs.org/docs/typechecking-with-proptypes.html
質問内のリンク先に記載の通りで、Reactのパッケージに含めるのを辞めただけの話です。
Reactのパッケージに含まれていたPropTypes
は独立したprop-types
モジュールとして切り離したので、props-types
を使うように書いてありますよね?
The biggest change is that we’ve extracted React.PropTypes and React.createClass into their own packages.
この辺りとか
https://reactjs.org/blog/2017/04/07/react-v15.5.0.html
PropTypes was previously included in React, but is now a separate package.
https://github.com/facebook/prop-types/blob/master/CHANGELOG.md#before-1550
この辺りでも同様のことが書いてあります。
The biggest change is that we’ve extracted React.PropTypes and React.createClass into their own packages. Both are still accessible via the main React object, but using either will log a one-time deprecation warning to the console when in development mode. This will enable future code size optimizations.
切り離して管理するようになった理由は太字にした部分になるのかなと思います。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/04/30 12:36