Skip to content

Conversation

@ncarreiro
Copy link
Contributor

Replaced old React Component Class creation method with ES6 to prevent this deprecated error in console:
"Warning: A Component: 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."

Link: https://reactjs.org/docs/components-and-props.html

Wrong commas typos in last 'boron' ES6 deprecated React.createClass() commit.
@PaulRBerg
Copy link

This should be merged asap.

@Maxim-Mazurok
Copy link

Good point, but it seems like you've applied your own code-style rules to the file and removed all ; from the code. So, it's really hard to see what you've actually changed.
I've added create-react-class component in my pull request, you can check it out: #49

@yuanyan yuanyan merged commit 9b50089 into yuanyan:master Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants