Skip to content

Instantly share code, notes, and snippets.

@agoiabel
Last active September 7, 2018 08:04
Show Gist options
  • Select an option

  • Save agoiabel/3ca026c9e9c7043c006d64e4d967d66a to your computer and use it in GitHub Desktop.

Select an option

Save agoiabel/3ca026c9e9c7043c006d64e4d967d66a to your computer and use it in GitHub Desktop.
constructor () {
super();
this.state = {
formIsValid: false, //we will use this to track the overall form validity
formControls: {
name: {
value: '',
valid: false,
validationRules: {
isRequired: true
},
placeholderText: 'Your name please',
touched: false
}
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment