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

React > 15.5 deprecating React.Proptypes #65

Closed
AdamTyler opened this issue Apr 19, 2017 · 2 comments
Closed

React > 15.5 deprecating React.Proptypes #65

AdamTyler opened this issue Apr 19, 2017 · 2 comments

Comments

@AdamTyler
Copy link

React is moving proptypes to a separate package in version 16 and in the meantime logging warnings. PropTypes are being used directly in various components currently causing the following warning Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

@EtienneLem
Copy link
Member

I haven’t been following the discussion on that, is it recommended to simply drop PropTypes altogether or to use the separate package?

@AdamTyler
Copy link
Author

AdamTyler commented Apr 19, 2017

The solution is to use the separate prop-types package. Their blog post can be found here

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

2 participants