issues
search
ljharb
/
prop-types-tools
Custom React PropType validators
MIT License
671
stars
50
forks
source link
Update ref prop type
#55
Closed
ahuth
closed
5 years ago
ahuth
commented
5 years ago
This PR updates
ref
to:
Ensure that callback refs are not descendants of React.Component (should take care of PureComponent, as well, since those also extend Component).
Ensure that callback refs have a single argument
This PR updates
ref
to: