Skip to content

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!

this.displayName = 'DocumentTitle';
}

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.

},
"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