Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Form

Form component to manage submission.

@example
function App() {
  const { control, formState: { errors } } = useForm();

  return (
    <Form action="/api" control={control}>
      <input {...register("name")} />
      <p>{errors?.root?.server && 'Server error'}</p>
      <button>Submit</button>
    </Form>
  );
}
function Form<T extends FieldValues, U extends FieldValues | undefined = undefined>(props: FormProps<T, U>): React.JSX.Element;
§
Form<T extends FieldValues, U extends FieldValues | undefined = undefined>(props: FormProps<T, U>): React.JSX.Element
[src]

§Type Parameters

§
U extends FieldValues | undefined = undefined
[src]

§Parameters

§
props: FormProps<T, U>
[src]

§Return Type

§

form component or headless render prop.