Skip to content

Instantly share code, notes, and snippets.

@gregoryanderson
Last active February 7, 2020 18:53
Show Gist options
  • Save gregoryanderson/57c51ca8c26b3932a58e55736ba3993c to your computer and use it in GitHub Desktop.
Save gregoryanderson/57c51ca8c26b3932a58e55736ba3993c to your computer and use it in GitHub Desktop.
Form
import React, { Component } from "react";
import "./Form.css";
class Form extends Component {
constructor() {
super();
this.state = {};
}
render() {
return (
<form className="form">
<section>
<label for="title">Title</label>
<input type="text" name="title" />
</section>
<section>
<label for="description">Description</label>
<input type="text" name="description" />
</section>
<button>Submit</button>
</form>
);
}
}
export default Form;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment