Update typechecking-with-proptypes.md with a minor addition (#3386)

This commit is contained in:
Abhishek Jain
2020-11-16 16:31:39 +05:30
committed by GitHub
parent fc6e864f1d
commit 957276e1e9

View File

@@ -99,7 +99,7 @@ MyComponent.propTypes = {
// is shown if the prop isn't provided.
requiredFunc: PropTypes.func.isRequired,
// A value of any data type
// A required value of any data type
requiredAny: PropTypes.any.isRequired,
// You can also specify a custom validator. It should return an Error