mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 18:58:17 +00:00
Update typechecking-with-proptypes.md with a minor addition (#3386)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user