Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
...
import Datepicker from '../components/datepicker';
export const FormComponent = ({ handleSubmit, onSubmit, formValues, change }) => {
return (
<div className="flex flex-column justify-center items-center">
<h1>My Very own Form</h1>
<form
className="w-80"
onSubmit={handleSubmit(onSubmit)}
>
...
<Field
name="orderDate"
label="Order Date"
component={Datepicker}
change={change}
/>
...
export default FormComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment