Created
October 10, 2021 17:14
-
-
Save bnymn/637d3de63acb3efceb3b33cdbf7ce674 to your computer and use it in GitHub Desktop.
Username and password fields are added
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 { Formik, Field, Form } from 'formik'; | |
export default function LoginForm() { | |
return ( | |
<Formik | |
initialValues={{ | |
username: '', | |
password: '', | |
}} | |
onSubmit={() => { | |
}} | |
> | |
<Form> | |
<Field id="username" name="username" placeholder="Username" /> | |
<Field type="password" id="password" name="password" placeholder="Password" /> | |
<button type="submit">Login</button> | |
</Form> | |
</Formik> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment