よく忘れるのでメモ
e.preventDefault();
してからAction
class GeneratePin extends Component {
handleSubmit(e) {
e.preventDefault();
const { someAction } = this.props;
someAction();
}
render() {
return (
<form
className="form-horizontal"
onSubmit={this.handleSubmit.bind(this)}>
<Input type="select" label="" name="num" placeholder="">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</Input>
<button className="btn btn-default">送信</button>
</form>
);
}
}