Use the right prop type for functions
This commit is contained in:
parent
57ce4d6e7d
commit
ea050683bd
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ export default class Field extends React.PureComponent {
|
|||
// changes. Returns an object with `valid` boolean field
|
||||
// and a `feedback` react component field to provide feedback
|
||||
// to the user.
|
||||
onValidate: PropTypes.function,
|
||||
onValidate: PropTypes.func,
|
||||
// All other props pass through to the <input>.
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue