Browse Source

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

main
Abhishek Jain 4 years ago
committed by GitHub
parent
commit
957276e1e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/typechecking-with-proptypes.md

2
content/docs/typechecking-with-proptypes.md

@ -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

Loading…
Cancel
Save