Skip to content

Commit b3f37e9

Browse files
committed
docs: change hardcoded name to field name
1 parent 8e34389 commit b3f37e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/react/next-server-actions/src/app/client-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const ClientComp = () => {
3737
return (
3838
<div>
3939
<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
4141
type="number"
4242
value={field.state.value}
4343
onChange={(e) => field.handleChange(e.target.valueAsNumber)}

0 commit comments

Comments
 (0)