If you want to submit form in react-bootstrap? FormGroup does not provide on submit event. You can wrap it with form element and attach event handler to it:
1 2 3 4 5 6 7 |
<form onSubmit={this.gotEmail}> <FormGroup role="form"> <FormControl type="text" className="form-control"/> <Button className="btn btn-primary btn-large centerButton" type="submit">Send</Button> </FormGroup> </form> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.