Skip to content

React.PropTypes and React.createClass are deprecated #5

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

Open
AndersDJohnson opened this issue Apr 14, 2017 · 5 comments
Open

React.PropTypes and React.createClass are deprecated #5

AndersDJohnson opened this issue Apr 14, 2017 · 5 comments

Comments

@AndersDJohnson
Copy link

AndersDJohnson commented Apr 14, 2017

Errors in the console with [email protected]:

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

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

@JaccoGoris
Copy link

I've created a pullrequest with a refactor to resolve this issue

@AndersDJohnson
Copy link
Author

#6

@AndersDJohnson AndersDJohnson changed the title React.createClass is deprecated React.PropTypes and React.createClass are deprecated May 5, 2017
@kunokdev
Copy link

Guys, will this pull request be pulled and published or is fork required?

@karl-run
Copy link

Any particular blockers on this one?

@kunokdev
Copy link

kunokdev commented Jun 13, 2017

Guys while we are waiting for pull request to be pulled, here is ES6 rewritten package ready to be installed via npm: https://www.npmjs.com/package/react-window-size-listener

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

No branches or pull requests

4 participants