This repository was archived by the owner on Aug 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ class App extends React.Component {
55
55
render () {
56
56
return (
57
57
< form>
58
- < label> Name: < / label>
59
- < Control .text model= " user.name" / >
58
+ < label htmlFor = " user.name " > Name: < / label>
59
+ < Control .text model= " user.name" id = " user.name " / >
60
60
61
- < label> Favorite color: < / label>
62
- < Control .select model= " user.faveColor" >
61
+ < label htmlFor = " user.faveColor " > Favorite color: < / label>
62
+ < Control .select model= " user.faveColor" id = " user.faveColor " >
63
63
< option value= " red" > red< / option>
64
64
< option value= " green" > green< / option>
65
65
< option value= " blue" > blue< / option>
Original file line number Diff line number Diff line change @@ -92,13 +92,15 @@ class UserForm extends React.Component {
92
92
}
93
93
render () {
94
94
return (
95
- < Form model= " user"
96
- onSubmit= {(user ) => this .handleSubmit (user)}>
97
- < label> First name: < / label>
98
- < Control .text model= " user.firstName" / >
99
-
100
- < label> Last name: < / label>
101
- < Control .text model= " user.lastName" / >
95
+ < Form
96
+ model= " user"
97
+ onSubmit= {(user ) => this .handleSubmit (user)}
98
+ >
99
+ < label htmlFor= " user.firstName" > First name: < / label>
100
+ < Control .text model= " user.firstName" id= " user.firstName" / >
101
+
102
+ < label htmlFor= " user.lastName" > Last name: < / label>
103
+ < Control .text model= " user.lastName" id= " user.lastName" / >
102
104
103
105
< button type= " submit" >
104
106
Finish registration!
You can’t perform that action at this time.
0 commit comments