Skip to content

Instantly share code, notes, and snippets.

@ilyeshammadi
Created August 11, 2017 20:49
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 ilyeshammadi/37a4f5d2d6d0951a7c1b04ef5f020fab to your computer and use it in GitHub Desktop.
Save ilyeshammadi/37a4f5d2d6d0951a7c1b04ef5f020fab to your computer and use it in GitHub Desktop.
const Form = () => {
return (
<form>
<input type="email"/>
<input type="password"/>
<button type="submit">Submit</button>
</form>
)
}
class Login extends React.Component{
render() {
return (
<div>
<h1>Login</h1>
<Form />
</div>
)
}
}
ReactDOM.render(
<Login />,
document.getElementById('app')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment