react报错解决办法

react在加载时会在后台出现类似错误:

Warning: LikeButton: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.

解决办法:npm install --save [email protected] [email protected]

错误原因:警告:likebutton:React.createClass是过时的,将在16版本中移除。使用纯JavaScript类代替。如果你没有准备好迁移,创造反应类可在NPM下降更换。将react降级即可!

你可能感兴趣的:(react报错解决办法)