Last active
July 21, 2016 23:45
-
-
Save ronal2do/299c2cfba74f80e2ea5f2bc5d22459b0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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