mirror of
https://github.com/LukeHagar/form.git
synced 2025-12-06 04:19:43 +00:00
feat: remove getFormProps to support React Native
This commit is contained in:
committed by
Corbin Crutchley
parent
0d7e545c1d
commit
2a31bd8219
@@ -35,7 +35,13 @@ export default function App() {
|
||||
<h1>Simple Form Example</h1>
|
||||
{/* A pre-bound form component */}
|
||||
<form.Provider>
|
||||
<form {...form.getFormProps()}>
|
||||
<form
|
||||
onSubmit={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
void form.handleSubmit();
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
{/* A type-safe and pre-bound field component*/}
|
||||
<form.Field
|
||||
|
||||
Reference in New Issue
Block a user