Root component that provide context to nested children.
Form
contains html <form/>
element. All props for <form/>
are valid for Form
(except action
attribute).
Also Form
represents FormProvider from react-formawesome-core package. All props for FormProvider
are valid for Form
.
<Form
onSubmit={async (values) => await someRequest(values)}
validator={new SchemaValidator(ExampleSchema)}
errorParser={(error) => myCustomParser(error)}
>
...
</Form>