Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import {connect} from 'formik';
const FormItem = connect(props => {
const { label, ...inputProps } = props;
const { errors, touched } = props.formik;
return (
{label && <label>{label}</label>}
<FormInput {...inputProps} />
{errors[] && touched[] && <p>{errors[]}</p>}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.