Created
March 7, 2020 01:15
-
-
Save lucas-lm/dba8fb1e4a3ccd5a3dfd253ce1bfc451 to your computer and use it in GitHub Desktop.
Revisions
-
lucas-lm created this gist
Mar 7, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ import React from 'react' import { Formik, Form } from 'formik' const FormComponent = props => { const { children, className, ...rest } = props return ( <Formik {...rest} > <Form className={className}> {children} </Form> </Formik> ) } export default FormComponent