Answers for "useformik type for typescript"

0

useformik type for typescript

import {useFormik, FormikProps} from "formik";

interface MyValues {
    id: number;
}
export const MyComponent = () => {
    const formik: FormikProps<MyValues> = useFormik<MyValues>({});
}
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language