helior / react-highlighter

:high_brightness: Highlight text using React
MIT License
157 stars 42 forks source link

Suppress new React deprecation warnings #38

Closed gnestor closed 7 years ago

gnestor commented 7 years ago

React will be removing createClass and PropTypes in React 16.

image

"Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead."

"Warning: Highlighter: 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."

helior commented 7 years ago

I believe this issue has been resolved by #39 and #37.