Created
September 29, 2021 21:56
-
-
Save Kellswork/6f48b8aee0d65d139b62b99c9936475e to your computer and use it in GitHub Desktop.
Build a simple react form with multiple input fields
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
export default function UserForm() { | |
return ( | |
<div> | |
<form> | |
<div> | |
<h3>Contact Form</h3> | |
</div> | |
<div> | |
<input | |
type="text" | |
name="name" | |
placeholder="Name" | |
/> | |
</div> | |
<div> | |
<input | |
type="email" | |
name="email" | |
placeholder="Email" | |
/> | |
</div> | |
<div> | |
<input | |
type="number" | |
name="phonenumber" | |
placeholder="Phone Number" | |
/> | |
</div> | |
<div> | |
<button>Submit Contact</button> | |
</div> | |
</form> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment