Skip to content

Commit 5c48218

Browse files
authored
Merge pull request #9 from TuanLuu54/feature/fix-props-id
Change name to id on props data
2 parents 287a326 + 9ec380b commit 5c48218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎001-sign-up/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ var Input = React.createClass({
77
return (
88
<div className="Input">
99
<input
10-
id={this.props.name}
10+
id={this.props.id}
1111
autoComplete="false"
1212
required
1313
type={this.props.type}
1414
placeholder={this.props.placeholder}
1515
/>
16-
<label htmlFor={this.props.name}></label>
16+
<label htmlFor={this.props.id}></label>
1717
</div>
1818
);
1919
}

0 commit comments

Comments
 (0)