Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

useformik type for typescript

import {useFormik, FormikProps} from "formik";

interface MyValues {
    id: number;
}
export const MyComponent = () => {
    const formik: FormikProps<MyValues> = useFormik<MyValues>({});
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #useformik #type #typescript
ADD COMMENT
Topic
Name
6+1 =