question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

deprecation error due to React.createClass

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:6

github_iconTop GitHub Comments

3reactions
freaksaucecommented, May 14, 2017

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

1reaction
raygeramicommented, May 11, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

React.createClass is deprecated and will be removed ... - GitHub
Warning: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, ......
Read more >
Disable React.createClass and PropTypes deprecated ...
Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If...
Read more >
React v15.5.0 – React Blog
New Deprecation Warnings​​ The biggest change is that we've extracted React. PropTypes and React. createClass into their own packages. Both are ...
Read more >
Will React Classes Get Deprecated Because of Hooks?
Before you say anything, yes, I am aware that React's official documentation states that there are no plans to deprecate class components ......
Read more >
Convert React.createClass to Stateless Function Components
As of React 15.5, createClass is deprecated. You'll get warnings in the console if you're using it in your code – and, when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found