Skip to content

Instantly share code, notes, and snippets.

@robrichard
Created March 20, 2017 19:45
Show Gist options
  • Save robrichard/25efb1bbe07e7fd940e5a5dc302d9697 to your computer and use it in GitHub Desktop.
Save robrichard/25efb1bbe07e7fd940e5a5dc302d9697 to your computer and use it in GitHub Desktop.
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