From dc06b4a84bc8fe50cb3158310bad1ef534210af7 Mon Sep 17 00:00:00 2001 From: Mack Solomon Date: Wed, 22 Jan 2020 07:21:31 -0800 Subject: [PATCH] update useField docs 1. Fix casing of custom_edit_url so that it does not 404 2. Import FormikProps from formik package --- docs/api/useField.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/useField.md b/docs/api/useField.md index 751aca8da..8520f74ea 100644 --- a/docs/api/useField.md +++ b/docs/api/useField.md @@ -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. @@ -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;