formik-schema
formik-schema copied to clipboard
How to Reset form
Thanks for the nice library.
const NewDataSource = ({handleSubmit, initialValues}) => (
<Form
schema={newDatasourceSchema}
initialValues={initialValues}
onSubmit={(values) => {
handleSubmit(values);
}}
/>
);
After submit I need to reset the form. Where can I find the documentation.
Thank you
could you please mention, how to add validation too. Much thanks
@abelkbil the Form
component passes all its props
to the underlying formik form which has extensive documentation you will find all you need there