在一个简单的react应用程序中,我使用了formik钩子useFormik,但是浏览器抱怨它在错误的地方使用。以下是我所做的: import { useFormik } from 'formik'; const SignupForm = () =>when the form is submitted
const
如果我有一个函数组件,并且想要在Formik标记之外设置一个值,我该怎么做呢?下面是我用来做进一步说明的代码。// Set the value of the number field here... <Screen> <FormField name="number" placeholder="Number" />