Skip to content

Instantly share code, notes, and snippets.

@bultas
Created July 3, 2015 10:29
Show Gist options
  • Save bultas/ce09c999f75f6268cf15 to your computer and use it in GitHub Desktop.
Save bultas/ce09c999f75f6268cf15 to your computer and use it in GitHub Desktop.
React formfield validation composition example
<FormField
type=''
blockInvalid={true}
validators=[...]
convertor=fn()
>
<Switch>
case 'type'
input = <input>
validators = [...]
...
<Convertor>
<Blocker>
<Validator>
{input}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment