@@ -120,65 +120,65 @@ export default function App() {
120
120
< div className = "container" >
121
121
< div className = "jumbotron" >
122
122
< div className = "row" >
123
- < div class = "col-md-6" >
123
+ < div className = "col-md-6" >
124
124
< h1 > Million React</ h1 >
125
125
</ div >
126
- < div class = "col-md-6" >
127
- < div class = "row" >
128
- < div class = "col-sm-6 smallpad" >
126
+ < div className = "col-md-6" >
127
+ < div className = "row" >
128
+ < div className = "col-sm-6 smallpad" >
129
129
< button
130
130
type = "button"
131
- class = "btn btn-primary btn-block"
131
+ className = "btn btn-primary btn-block"
132
132
id = "run"
133
133
onClick = { create1k }
134
134
>
135
135
Create 1,000 rows
136
136
</ button >
137
137
</ div >
138
- < div class = "col-sm-6 smallpad" >
138
+ < div className = "col-sm-6 smallpad" >
139
139
< button
140
140
type = "button"
141
- class = "btn btn-primary btn-block"
141
+ className = "btn btn-primary btn-block"
142
142
id = "runlots"
143
143
onClick = { create10k }
144
144
>
145
145
Create 10,000 rows
146
146
</ button >
147
147
</ div >
148
- < div class = "col-sm-6 smallpad" >
148
+ < div className = "col-sm-6 smallpad" >
149
149
< button
150
150
type = "button"
151
- class = "btn btn-primary btn-block"
151
+ className = "btn btn-primary btn-block"
152
152
id = "add"
153
153
onClick = { append1k }
154
154
>
155
155
Append 1,000 rows
156
156
</ button >
157
157
</ div >
158
- < div class = "col-sm-6 smallpad" >
158
+ < div className = "col-sm-6 smallpad" >
159
159
< button
160
160
type = "button"
161
- class = "btn btn-primary btn-block"
161
+ className = "btn btn-primary btn-block"
162
162
id = "update"
163
163
onClick = { updateEvery10 }
164
164
>
165
165
Update every 10th row
166
166
</ button >
167
167
</ div >
168
- < div class = "col-sm-6 smallpad" >
168
+ < div className = "col-sm-6 smallpad" >
169
169
< button
170
170
type = "button"
171
- class = "btn btn-primary btn-block"
171
+ className = "btn btn-primary btn-block"
172
172
id = "clear"
173
173
onClick = { clear }
174
174
>
175
175
Clear
176
176
</ button >
177
177
</ div >
178
- < div class = "col-sm-6 smallpad" >
178
+ < div className = "col-sm-6 smallpad" >
179
179
< button
180
180
type = "button"
181
- class = "btn btn-primary btn-block"
181
+ className = "btn btn-primary btn-block"
182
182
id = "swaprows"
183
183
onClick = { swapRows }
184
184
>
@@ -203,7 +203,7 @@ export default function App() {
203
203
</ tbody >
204
204
</ table >
205
205
< span
206
- class = "preloadicon glyphicon glyphicon-remove"
206
+ className = "preloadicon glyphicon glyphicon-remove"
207
207
aria-hidden = "true"
208
208
> </ span >
209
209
</ div >
@@ -213,16 +213,16 @@ export default function App() {
213
213
function Row ( { item, selected, remove, setSelected } ) {
214
214
return (
215
215
< tr className = { selected === item . id ? 'danger' : '' } >
216
- < td class = "col-md-1" > { item . id } </ td >
217
- < td class = "col-md-4" >
216
+ < td className = "col-md-1" > { item . id } </ td >
217
+ < td className = "col-md-4" >
218
218
< a onClick = { ( ) => setSelected ( item . id ) } > { item . label } </ a >
219
219
</ td >
220
- < td class = "col-md-1" >
220
+ < td className = "col-md-1" >
221
221
< a onClick = { ( ) => remove ( item . id ) } >
222
- < span class = "glyphicon glyphicon-remove" aria-hidden = "true" > </ span >
222
+ < span className = "glyphicon glyphicon-remove" aria-hidden = "true" > </ span >
223
223
</ a >
224
224
</ td >
225
- < td class = "col-md-6" />
225
+ < td className = "col-md-6" />
226
226
</ tr >
227
227
) ;
228
228
}
0 commit comments