Skip to content

Instantly share code, notes, and snippets.

@KTruong008
Last active September 23, 2017 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KTruong008/678dd24ed4e4bb68c1f3f68a13acb500 to your computer and use it in GitHub Desktop.
Save KTruong008/678dd24ed4e4bb68c1f3f68a13acb500 to your computer and use it in GitHub Desktop.
...
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