Skip to content

Instantly share code, notes, and snippets.

View felipecodes's full-sized avatar
🏠
Working from home

Felipe Oliveira felipecodes

🏠
Working from home
View GitHub Profile
@felipecodes
felipecodes / EmailInput.jsx
Created December 2, 2017 01:05 — forked from jaredpalmer/EmailInput.jsx
Formik async email signup input
import React from 'react';
import debounce from 'utils/debounce';
class EmailInput extends React.Component {
checkEmail = value => {
// only check if the field passes Yup email validation first
if (
!this.props.form.errors[this.props.name].includes(
'invalid' /* or whatever your error message is*/
)