Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.