Closed manosim closed 7 years ago
Hi there! In the latest react release there is a deprecation warning about using React.PropTypes. You can read more on the react blog.
React.PropTypes
This PR, adds prop-types as a dependency and replaces the use of React.PropTypes to use them from the separate library.
prop-types
A similar replacement example can be found at https://github.com/reactjs/react-modal/pull/374.
Ps. It would be great if you can cut a new release for this one since it will make the console warning-free again 😄
Thank you @luqin for sorting out this one so fast 🎉
Hi there! In the latest react release there is a deprecation warning about using
React.PropTypes
. You can read more on the react blog.This PR, adds
prop-types
as a dependency and replaces the use ofReact.PropTypes
to use them from the separate library.A similar replacement example can be found at https://github.com/reactjs/react-modal/pull/374.
Ps. It would be great if you can cut a new release for this one since it will make the console warning-free again 😄