Skip to content

Instantly share code, notes, and snippets.

@mauricedb
Created November 11, 2016 16:01
Show Gist options
  • Save mauricedb/67c68aab5fc28571149f9db78681d90e to your computer and use it in GitHub Desktop.
Save mauricedb/67c68aab5fc28571149f9db78681d90e to your computer and use it in GitHub Desktop.
import React, { Component, PropTypes } from 'react';
class LoginPage extends Component {
render() {
return (
<form className="col-sm-6 col-sm-offset-3">
<div className="form-group">
<label htmlFor="username">Name</label>
<input
type="text"
className="form-control"
placeholder="Name"
id="username"
/>
</div>
<div className="form-group">
<label htmlFor="password">Password</label>
<input
type="password"
id="password"
className="form-control"
placeholder="Password"
/>
</div>
<div className="checkbox">
<label htmlFor="rememberMe">
<input
type="checkbox"
id="rememberMe"
/>
Remember me on this device
</label>
</div>
<button className="btn btn-primary">Sign In</button>
</form>
);
}
}
LoginPage.propTypes = {
loginAsUser: PropTypes.func.isRequired,
};
export default LoginPage;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment