Last active
July 15, 2016 09:47
-
-
Save jacobp100/6ba8630062a804507a7a8134679f6e58 to your computer and use it in GitHub Desktop.
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
| const AddCat = ({ handleCatAddition }) => ( | |
| <div> | |
| <form method="POST" onSubmit={handleCatAddition}> | |
| <input type="hidden" name="action-creator" value="add-cat" /> | |
| <input name="name" /> | |
| <input type="number" name="age" /> | |
| <select name="gender"> | |
| <option value="male">Male</option> | |
| <option value="female">Female</option> | |
| </select> | |
| <button> | |
| Add | |
| </button> | |
| </form> | |
| <Link to="/">Back</Link> | |
| </div> | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment