我刚刚经历了 React-bootstrap form什么是controlId的使用它是否与我们在遗留形式中使用的名称类似? form FormGroup controlId="formBasicText" ---------------------- what is the use? validationState={this.getValidat
<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>
正如
DOCS所说:
Sets id on
<FormControl>andhtmlForon<FormGroup.Label>.
基本上它是输入的id和属性的标签.
