Skip to content

Commit

Permalink
update useField docs
Browse files Browse the repository at this point in the history
1. Fix casing of custom_edit_url so that it does not 404
2. Import FormikProps from formik package
  • Loading branch information
mackness committed Jan 22, 2020
1 parent 4ff1c5c commit dc06b4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/useField.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: useField
title: useField()
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/usefield.md
custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/useField.md
---

`useField` is a custom React hook that will automagically help you hook up inputs to Formik. You can and should use it to build your own custom input primitives. There are 2 ways to use it.
Expand All @@ -10,7 +10,7 @@ custom_edit_url: https://github.com/jaredpalmer/formik/edit/master/docs/api/usef

```tsx
import React from 'react';
import { useField, Form, Formik } from 'formik';
import { useField, Form, FormikProps, Formik } from 'formik';

interface Values {
firstName: string;
Expand Down

0 comments on commit dc06b4a

Please sign in to comment.