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

Prep for React v16 and removal for deprecation warnings (PropTypes & createClass) #463

Closed
stephen-last opened this issue Apr 10, 2017 · 6 comments

Comments

@stephen-last
Copy link

Are there any plans to prepare for React v16 as per this post: React v15.5.0 ..?

It means replacing all React.PropTypes and using the prop-types package, and repalcing all React.createClass using the create-react-class package.

Doing this will also remove the deprecation warnings for anyone using React v15.5.0 which show in the console in development env.

@binjospookie
Copy link

binjospookie commented Apr 12, 2017

and using the prop-types package

Maybe Flow?

@stephen-last
Copy link
Author

Sure... So long as React.PropTypes and React.createClass are removed.

It is quite annoying to have these red warnings in my console all the time while in dev:

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

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

Other than this issue, this package is really good!

@tomchentw
Copy link
Owner

Will do.

@tomchentw
Copy link
Owner

Released 7.0.0

@ffxsam
Copy link

ffxsam commented Jul 5, 2017

@tomchentw Could you (or someone) please publish 7.0 to the npm registry? (or is it not ready yet?)

@tomchentw
Copy link
Owner

Published 7.0.0 to npm as latest.

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