import { Form, Formik } from "formik"; import React from "react"; import * as Yup from "yup"; const WithFormik = ({ children }: any) => { const getInitialValues = () => { return { name: "" }; }; const getValidationSchema = () => { return Yup.object().shape({}); }; const handleSubmit = () => {}; return (
{ {(formik) =>
{children}
}
}
); }; export default WithFormik;