Replace CustomPropTypes.component
with PropTypes.elementType
#397
Labels
good first issue
For issues that a new contributor could likely submit a pull request for without needing much help
help wanted
For issues that have a clear solution described and are not currently prioritized core team work
Background
We were using our own
CustomPropTypes.component
prop type untilPropTypes
had an "anything that can be an element type" validator. As of 15.7.0 release, it now hasPropTypes.elementType
which is the same as our custom prop type.https://github.com/facebook/prop-types/blob/master/CHANGELOG.md#1570
Work
prop-types
NPM dependency to 15.7.0 or higherCustomPropTypes.component
toPropTypes.elementType
CustomPropTypes.component
and related code in that fileThe text was updated successfully, but these errors were encountered: