Skip to content

Instantly share code, notes, and snippets.

@anshulrgoyal
Created March 9, 2019 10:04
Show Gist options
  • Select an option

  • Save anshulrgoyal/b0c6e7831a232dd4a27b1d7f5276673e to your computer and use it in GitHub Desktop.

Select an option

Save anshulrgoyal/b0c6e7831a232dd4a27b1d7f5276673e to your computer and use it in GitHub Desktop.
Formik
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