Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Created May 12, 2019 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luandevpro/de26423ba57797c237764c420c5cc0d1 to your computer and use it in GitHub Desktop.
Save luandevpro/de26423ba57797c237764c420c5cc0d1 to your computer and use it in GitHub Desktop.
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