Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prop-types; don't use React.createClass (React 15.5) #40

Closed
wants to merge 2 commits into from

Conversation

rsolomon
Copy link

  • Use the prop-types library to avoid React 15.5 deprecation warning.
  • Use janky ES5 class syntax in lieu of deprecated React.createClass API

@JaapRood
Copy link
Contributor

Dupe of #38!


DocumentTitle.prototype = Object.assign(Object.create(React.Component.prototype), {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -34,6 +34,8 @@
"react": "^0.13.0"
},
"dependencies": {
"prop-types": "^15.5.0",
"react": "^15.5.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure we wouldn't want to pull in our own copy of react here. Perhaps as a peer dependency?

@rsolomon
Copy link
Author

rsolomon commented Apr 12, 2017

Aye apologies for the dupe. You had mentioned "it's time to move on" so I assumed you had moved on ;)

I'm happy to abandon in lieu of yours! Feel free to use anything I've done here.

@rsolomon rsolomon closed this Apr 12, 2017
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.

2 participants