We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0dc463 + a436623 commit c0593faCopy full SHA for c0593fa
13-form-validation/a-validation/src/Field.js
@@ -15,21 +15,17 @@ class Field extends Component {
15
16
render () {
17
const {
18
- // name,
19
- // id = name,
20
label,
21
onChange
22
} = this.props;
23
const { value, invalidMsg } = this.state;
24
const inputProps = {
25
...this.props,
26
- //id,
27
value,
28
onChange: (e) => this.handleChange(e, onChange)
29
};
30
return (
31
<div className="pure-control-group">
32
- {/* <label htmlFor={id}>{label} */}
33
<label>{label}
34
<input {...inputProps} style={{minWidth: '200px'}} />
35
{
0 commit comments