score:3

Accepted answer

You should pass an event to the onFormSubmit function:

    <Button
      backgroundColor="primary"
      color="white"
      inverted={true}
      rounded={true}
      onClick={(event) => this.onFormSubmit(event)}
      ...

Related Query

More Query from same tag