File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
docs/framework/react/guides
examples/react/next-server-actions/src/app Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ function Home() {
147
147
return (
148
148
<div >
149
149
<input
150
- name = " age "
150
+ name = { field . name }
151
151
type = " number"
152
152
value = { field .state .value }
153
153
onChange = { (e ) => field .handleChange (e .target .valueAsNumber )}
@@ -293,7 +293,7 @@ export const ClientComp = () => {
293
293
return (
294
294
<div >
295
295
<input
296
- name = " age " // must explicitly set the name attribute for the POST request
296
+ name = { field . name } // must explicitly set the name attribute for the POST request
297
297
type = " number"
298
298
value = { field .state .value }
299
299
onChange = { (e ) => field .handleChange (e .target .valueAsNumber )}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export const ClientComp = () => {
37
37
return (
38
38
< div >
39
39
< input
40
- name = "age" // must explicitly set the name attribute for the POST request
40
+ name = { field . name } // must explicitly set the name attribute for the POST request
41
41
type = "number"
42
42
value = { field . state . value }
43
43
onChange = { ( e ) => field . handleChange ( e . target . valueAsNumber ) }
You can’t perform that action at this time.
0 commit comments