Accessing createClass

#1
Accessing PropTypes via the main React package is deprecated, and will be removed in  React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more

Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement.

使用react一直提示这个警告 想知道原因,求大神指点

#2

兄弟,你是想使用propTypes吧,单独下载一个包,
npm install prop-types -D,
prop-types在react16里面已经没有了,
第二个问题是跟第一个差不多,直接用ES6的class语法代替吧,希望能帮到你