45
rated 0 times
[
52]
[
7]
/ answers: 1 / hits: 30467
/ 7 Years ago, mon, october 16, 2017, 12:00:00
I was just going through the React-bootstrap form what is the use of controlId
is it similar to name
we use in legacy form?
<form>
<FormGroup
controlId=formBasicText ---------------------->> what is the use?
validationState={this.getValidationState()}
>
<ControlLabel>Working example with validation</ControlLabel>
<FormControl
type=text
value={this.state.value}
placeholder=Enter text
onChange={this.handleChange}
/>
<FormControl.Feedback />
<HelpBlock>Validation is based on string length.</HelpBlock>
</FormGroup>
</form>
More From » reactjs