insin / react-maskedinput

Masked <input/> React component
http://insin.github.io/react-maskedinput/
MIT License
730 stars 197 forks source link

deprecation error due to React.createClass #93

Closed freaksauce closed 7 years ago

freaksauce commented 7 years ago

React.createClass is being deprecated in React 16.0 and currently shows deprecation warnings in 15.5

Warning: MaskedInput: 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.

Code needs to be refactored to use class MaskedInput extends Component syntax.

raygerami commented 7 years ago

Is this fixed? It still shows in version 3.3.4.

MichaelDeBoey commented 7 years ago

@raygerami v3.3.4 (the latest release of this package) is released December 16th 2016. The warnings were introduced since April 7th 2017 together with React v15.5, so it's normal that it's still not in this package Also #94 isn't merged yet so...

raygerami commented 7 years ago

@MichaelDeBoey thanks

freaksauce commented 7 years ago

I've tried contacting the dev a couple of times and no response unfortunately

MichaelDeBoey commented 7 years ago

@insin I think we're all waiting for this one. 😕 Please merge #94! 🙂

armsteadj1 commented 7 years ago

https://github.com/sanniassin/react-input-mask