Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Form, Field } from 'formik';
- import TextInput from './TextInput';
- export default () => (
- <div>
- <Form>
- <Field
- name="name"
- component={TextInput}
- label="Name"
- type="name"
- id="name"
- className="form-control"
- placeholder="Enter your email"
- />
- <br />
- <Field
- name="email"
- component={TextInput}
- label="Email"
- type="email"
- id="email"
- className="form-control"
- placeholder="Enter your email"
- />
- <br />
- <br />
- <button type="submit">submit</button>
- </Form>
- </div>
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement