-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
PropTypes: More informative warning in createElementTypeChecker #7302
Comments
Sounds good to me. |
May I take it, please? @gaearon |
Yup, I'm on it. On Tuesday, 19 July 2016, Ryan Lahfa notifications@github.com wrote:
|
@alexzherdev Awesome! 👍 |
Do you want to request a feature or report a bug?
Enhancement
What is the current behavior?
Element type checker is not as informative as the other ones.
What is the expected behavior?
It would be nice to provide the actual type of the prop passed similarly to other type checkers. I.e., instead of
say
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Seeing this on 15.2.1 but I think it's also applicable to previous versions.
I know the general intention is to move away from prop types, but if there isn't a specific reason for the current behavior I can look into making this more pretty.
The text was updated successfully, but these errors were encountered: