Skip to content

Commit 96e4caf

Browse files
authored
fix react hook form example (#6391)
fix react hook form example
1 parent d0bc984 commit 96e4caf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/dev/docs/pages/react-aria/forms.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ function App() {
473473
};
474474

475475
return (
476-
<form onSubmit={handleSubmit(onSubmit)}>
476+
<Form onSubmit={handleSubmit(onSubmit)}>
477477
<Controller
478478
control={control}
479479
name="name"
@@ -500,7 +500,7 @@ function App() {
500500
)}
501501
/>
502502
<Button type="submit">Submit</Button>
503-
</form>
503+
</Form>
504504
);
505505
}
506506
```

0 commit comments

Comments
 (0)