Answers for "TypeError: formik.getFieldProps is not a function"

0

TypeError: formik.getFieldProps is not a function

// add FormikProvider
import { useFormik, Field, FormikProvider } from "formik";

const formik = useFormik({
  initialValues,
  onSubmit: (values) => {...},
});

// wrap with FormikProvider
return (
  <FormikProvider value={formik}>
    <Row>...your-code...</Row>
  </FormikProvider>
)
Posted by: Guest on September-27-2021

Code answers related to "TypeError: formik.getFieldProps is not a function"

Browse Popular Code Answers by Language