Skip to content

Instantly share code, notes, and snippets.

@ronal2do
Last active July 21, 2016 23:45
Show Gist options
  • Save ronal2do/299c2cfba74f80e2ea5f2bc5d22459b0 to your computer and use it in GitHub Desktop.
Save ronal2do/299c2cfba74f80e2ea5f2bc5d22459b0 to your computer and use it in GitHub Desktop.
import React from 'react';
export default class InputEmail extends React.Component {
constructor(props) {
super(props);
this.state = {
validate: false
};
}
validator(){
console.log("blur, validar");
}
render() {
return (
<input
type="email"
id={this.props.label}
name={this.props.label}
onBlur={this.validator}
className="form-control"
placeholder={this.props.placeholder}
/>
) ;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment