Last active
June 24, 2018 12:16
-
-
Save santosh-btc/db36b456163f1721e84093ec4625b448 to your computer and use it in GitHub Desktop.
This file contains 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 characters
const renderField = ({ | |
input, | |
type, | |
meta: { touched, error } | |
}) => ( | |
<div> | |
<label>{label}</label> | |
<div> | |
<input {...input} placeholder={label} type={type} /> | |
{touched && error && <span>{error}</span>} | |
</div> | |
</div> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment