mirror of
https://github.com/LukeHagar/form.git
synced 2025-12-10 12:27:45 +00:00
docs(quick-start): add <form> tag to quick start example (#467)
This commit is contained in:
@@ -25,6 +25,13 @@ export default function App() {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<form.Provider>
|
<form.Provider>
|
||||||
|
<form
|
||||||
|
onSubmit={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
void form.handleSubmit();
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div>
|
<div>
|
||||||
<form.Field
|
<form.Field
|
||||||
name="fullName"
|
name="fullName"
|
||||||
@@ -39,6 +46,7 @@ export default function App() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit">Submit</button>
|
<button type="submit">Submit</button>
|
||||||
|
</form>
|
||||||
</form.Provider>
|
</form.Provider>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user