Created
September 9, 2017 23:02
-
-
Save KTruong008/9acf945a8d1a2dfbccd86d1f55d9aaca 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
// validate : (value, allValues, props) => error [optional] # | |
export const required = (value) => { | |
if (!value) { | |
return 'This field is required!' | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment