Created
August 11, 2017 20:49
-
-
Save ilyeshammadi/37a4f5d2d6d0951a7c1b04ef5f020fab to your computer and use it in GitHub Desktop.
This file contains 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
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