Form
June 18, 2019 ยท View on GitHub
Root component that provide context to nested children.
Public interface
Props
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.
Example
<Form
onSubmit={async (values) => await someRequest(values)}
validator={new SchemaValidator(ExampleSchema)}
errorParser={(error) => myCustomParser(error)}
>
...
</Form>