Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  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. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement