add required prop type
This commit is contained in:
parent
b7b8851698
commit
cfcdbd48f1
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ export function formFieldId() {
|
|||
}
|
||||
|
||||
export class Form extends React.PureComponent {
|
||||
static propTypes = {
|
||||
onSubmit: React.PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue