Created
March 9, 2019 10:04
-
-
Save anshulrgoyal/b0c6e7831a232dd4a27b1d7f5276673e to your computer and use it in GitHub Desktop.
Formik
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
| import React from "react"; | |
| import s from "./app.component.css"; | |
| export default function App(props) { | |
| return ( | |
| <form className={s.form}> | |
| <input | |
| type="email" | |
| placeholder="Enter email" | |
| name="email" | |
| className={s.text_field} | |
| /> | |
| <input | |
| type="password" | |
| name="password" | |
| placeholder="Password" | |
| className={s.text_field} | |
| /> | |
| <input | |
| name="name" | |
| type="text" | |
| placeholder="Name" | |
| className={s.text_field} | |
| /> | |
| <button type="submit" className={`${s.button} ${s.submit_button}`}> | |
| Submit | |
| </button> | |
| </form> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment