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

FormProps

interface FormProps extends [React.FormHTMLAttributes]<HTMLFormElement> {
action?: string;
method?: FormMethod;
onSubmit?: React.FormEventHandler<HTMLFormElement>;
reloadDocument?: boolean;
replace?: boolean;
}

§Extends

§
[React.FormHTMLAttributes]<HTMLFormElement>
[src]

§Properties

§
action?: string
[src]

Normal <form action> but supports React Router's relative paths.

§

The HTTP verb to use when the form is submit. Supports "get", "post", "put", "delete", "patch".

§
onSubmit?: React.FormEventHandler<HTMLFormElement>
[src]

A function to call when the form is submitted. If you call event.preventDefault() then this form will not do anything.

§

Determines whether the form action is relative to the route hierarchy or the pathname. Use this if you want to opt out of navigating the route hierarchy and want to instead route based on /-delimited URL segments

§
reloadDocument?: boolean
[src]

Forces a full document navigation instead of a fetch.

§
replace?: boolean
[src]

Replaces the current entry in the browser history stack when the form navigates. Use this if you don't want the user to be able to click "back" to the page with the form on it.