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.
1 parent 8e34389 commit b3f37e9Copy full SHA for b3f37e9
examples/react/next-server-actions/src/app/client-component.tsx
@@ -37,7 +37,7 @@ export const ClientComp = () => {
37
return (
38
<div>
39
<input
40
- name="age" // must explicitly set the name attribute for the POST request
+ name={field.name} // must explicitly set the name attribute for the POST request
41
type="number"
42
value={field.state.value}
43
onChange={(e) => field.handleChange(e.target.valueAsNumber)}
0 commit comments