Created
March 20, 2017 19:45
-
-
Save robrichard/25efb1bbe07e7fd940e5a5dc302d9697 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
class MyForm extends React.Component { | |
render() { | |
return ( | |
<form onSubmit={() => /* save your form here */}> | |
<div> | |
<input name="email" placeholder="email"/> | |
</div> | |
<div> | |
<input name="name" placeholder="name"/> | |
</div> | |
<div> | |
<button type="submit">Submit</button> | |
</div> | |
</form> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment