Skip to content

Instantly share code, notes, and snippets.

@adamklingbaum
Last active November 14, 2021 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamklingbaum/ef33d6cf3bc2b6ae0ef2ac6a9dc818cc to your computer and use it in GitHub Desktop.
Save adamklingbaum/ef33d6cf3bc2b6ae0ef2ac6a9dc818cc to your computer and use it in GitHub Desktop.
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