ethanselzer / react-cursor-position

A React component that decorates its children with mouse and touch coordinates relative to itself.
https://ethanselzer.github.io/react-cursor-position
MIT License
143 stars 35 forks source link

Compatibility with React 15.5 #5

Closed damien916 closed 7 years ago

damien916 commented 7 years ago

Hello @ethanselzer :) I use react-image-magnify with react 15.5 and i have this error:

ReactCursorPosition: 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.

Have you planned to update react-cursor-position to make it compatible with react 15.5 ?

ethanselzer commented 7 years ago

Hi @damien916!

Thanks for asking. Yes, react-cursor-position should be compatible with React 15.5 as of the 2.0 release. I am in the process of upgrading other react-image-magnify dependencies on the path to full React 15.5 support. I just opened an issue to track progress. Thank you for raising my awareness on the importance of this upgrade!

damien916 commented 7 years ago

Hi @ethanselzer, it's a great news, thank you again for your job !

ethanselzer commented 7 years ago

Closing in favor of tracking this issue on https://github.com/ethanselzer/react-image-magnify/issues/10.