Javascript 福米克';s FastField没有';用道具传递元对象

Javascript 福米克';s FastField没有';用道具传递元对象,javascript,reactjs,typescript,formik,Javascript,Reactjs,Typescript,Formik,我正在使用Formik(v2.1.5)构建一个表单,在React中,传递给FastField包装的字段组件的道具类型似乎是: export interface FastFieldProps<V = any> { field: FieldInputProps<V>; meta: FieldMetaProps<V>; form: FormikProps<V>; } 我正在尝试访问元道具,以便获得触摸和错误值,我目前正在使用一种

我正在使用
Formik
(v2.1.5)构建一个表单,在
React
中,传递给FastField包装的字段组件的道具类型似乎是:

export interface FastFieldProps<V = any> {
    field: FieldInputProps<V>;
    meta: FieldMetaProps<V>;
    form: FormikProps<V>;
}
我正在尝试访问
道具,以便获得
触摸
错误
值,我目前正在使用一种解决方法:

const [{}, { touched, error }] = useField(name);
但我宁愿从父母那里得到所有的道具。是我做错了什么,还是图书馆/打字机出了问题

const [{}, { touched, error }] = useField(name);