This is my React Render Block. I am using HTML5 Validation here, using required. This things supposed to work fine. But it is not working. can anyone suggest me how to use HTML5 validation with react?
<div >
<div className="modal-dialog">
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<input type="email" className="form-control" name="email" required
placeholder="Enter a valid email address" id='email' ref="email"/>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" className="form-control" id='password' ref="password" required
placeholder="Password must be 10 character long"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="button" input type="submit" className="btn btn-success"
onClick={this.saveNewUser}>Register
</button>
</div>
</div>
<div>
</div>
</div>
</div>