Last active
February 7, 2020 18:53
-
-
Save gregoryanderson/57c51ca8c26b3932a58e55736ba3993c to your computer and use it in GitHub Desktop.
Form
This file contains hidden or 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
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