Abhishek Jain
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/docs/typechecking-with-proptypes.md
|
@ -99,7 +99,7 @@ MyComponent.propTypes = { |
|
|
// is shown if the prop isn't provided. |
|
|
// is shown if the prop isn't provided. |
|
|
requiredFunc: PropTypes.func.isRequired, |
|
|
requiredFunc: PropTypes.func.isRequired, |
|
|
|
|
|
|
|
|
// A value of any data type |
|
|
// A required value of any data type |
|
|
requiredAny: PropTypes.any.isRequired, |
|
|
requiredAny: PropTypes.any.isRequired, |
|
|
|
|
|
|
|
|
// You can also specify a custom validator. It should return an Error |
|
|
// You can also specify a custom validator. It should return an Error |
|
|