Last active
November 14, 2021 22:21
-
-
Save adamklingbaum/ef33d6cf3bc2b6ae0ef2ac6a9dc818cc to your computer and use it in GitHub Desktop.
This file contains 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, { useState, useCallback } from 'react'; | |
import { Container, Form, Button } from 'react-bootstrap'; | |
export default function ValidatedForm() { | |
return ( | |
<Container> | |
<h1>Sign up</h1> | |
<Form> | |
<Form.Group className="mb-3" controlId="first"> | |
<Form.Label>First name</Form.Label> | |
<Form.Control | |
type="text" | |
name="first" | |
placeholder="Enter your first name" | |
/> | |
</Form.Group> | |
<Form.Group className="mb-3" controlId="last"> | |
<Form.Label>Last name</Form.Label> | |
<Form.Control | |
type="text" | |
name="last" | |
placeholder="Enter your last name" | |
/> | |
</Form.Group> | |
<Button variant="primary" type="submit"> | |
Submit | |
</Button> | |
</Form> | |
</Container> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment