SHARE
TWEET

Untitled

a guest May 22nd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Form, Field } from 'formik';
  2. import TextInput from './TextInput';
  3.  
  4. export default () => (
  5.   <div>
  6.     <Form>
  7.       <Field
  8.         name="name"
  9.         component={TextInput}
  10.         label="Name"
  11.         type="name"
  12.         id="name"
  13.         className="form-control"
  14.         placeholder="Enter your email"
  15.       />
  16.       <br />
  17.       <Field
  18.         name="email"
  19.         component={TextInput}
  20.         label="Email"
  21.         type="email"
  22.         id="email"
  23.         className="form-control"
  24.         placeholder="Enter your email"
  25.       />
  26.       <br />
  27.       <br />
  28.       <button type="submit">submit</button>
  29.     </Form>
  30.   </div>
  31. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top