Skip to content

Instantly share code, notes, and snippets.

@lucas-lm
Created March 7, 2020 01:15
Show Gist options
  • Save lucas-lm/dba8fb1e4a3ccd5a3dfd253ce1bfc451 to your computer and use it in GitHub Desktop.
Save lucas-lm/dba8fb1e4a3ccd5a3dfd253ce1bfc451 to your computer and use it in GitHub Desktop.

Revisions

  1. lucas-lm created this gist Mar 7, 2020.
    17 changes: 17 additions & 0 deletions Form.js
    Original 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