You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
PropTypes.boolean is undefined. You get a warning because React expects a function. PropTypes.bool, like PropTypes.string and others, is a function that validates your props (so it can't be a boolean, a string, etc).
(That said, having an alias for bool as boolean would probably be a good thing)
Yes, it’s expected (you needed PropTypes.bool as documented in the README). Perhaps the warning could say Have you misspelled a PropType? at the end if the validator is undefined. Would either of you be interested in sending a PR to make the warning better?
I think that the boolean type should be called 'boolean'
You can add boolean as alias for bool, for expected behavior PropTypes
I think if undefined PropType shouldn't be function
The text was updated successfully, but these errors were encountered: