Skip to content

Instantly share code, notes, and snippets.

@Kellswork
Created September 29, 2021 21:56
Show Gist options
  • Save Kellswork/6f48b8aee0d65d139b62b99c9936475e to your computer and use it in GitHub Desktop.
Save Kellswork/6f48b8aee0d65d139b62b99c9936475e to your computer and use it in GitHub Desktop.
Build a simple react form with multiple input fields
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