add required prop type

This commit is contained in:
Jeremy Kauffman 2017-09-18 18:16:00 -04:00
parent b7b8851698
commit cfcdbd48f1

View file

@ -11,6 +11,10 @@ export function formFieldId() {
}
export class Form extends React.PureComponent {
static propTypes = {
onSubmit: React.PropTypes.func.isRequired,
};
constructor(props) {
super(props);
}