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
Document defaultProps in README #343
Comments
A sentence that points back to https://reactjs.org/docs/typechecking-with-proptypes.html#default-prop-values seems reasonable. |
Just looked at that page again and I see now that the message at the top which I mentioned is intended for people who were using the old |
I have no control over react’s docs; you’d have to file an issue/PR on react itself for that. |
Gotcha, will do - thanks Jordan. |
Closing in favor of reactjs/react.dev#3632 |
defaultProps
are not mentioned at all in the README. This is not useful if you've just gotten an error fromeslint-plugin-react/require-default-props
. The top Google hit for "React defaultProps" is this page on the React site which directs you to look at theprop-types
documentation instead.The text was updated successfully, but these errors were encountered: