Skip to content

Instantly share code, notes, and snippets.

@nesbtesh
Last active November 19, 2016 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nesbtesh/700a2ee2aba2eefd5dee157157017a2f to your computer and use it in GitHub Desktop.
Save nesbtesh/700a2ee2aba2eefd5dee157157017a2f to your computer and use it in GitHub Desktop.
import React from "react";
import LabelInput from "./LabelInput";
export default class LoginForm extends React.Component {
render(){
const {email, password, onSubmit, onChange} = this.props;
return(
<form>
<p>Login</p>
<LabelInput value={email} onChange={onChange} name="email" label="Email Address" placeholder="usuario@dominio.com">
<LabelInput value={password} onChange={onChange} name="password" label="Password" placeholder="Password">
<a>Forgot Password?</a>
<button onClick={onSubmit}>Login</button>
</form>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment