React formik form validation: How to initially have submit button disabled
问题 Below is my React form validation code in which I am using formik . By default when the form loads, I want to keep the submit button disabled: import { useFormik } from "formik"; import * as Yup from "yup"; const formik = useFormik({ initialValues: { firstName: "", lastName: "", email: "" }, validationSchema: Yup.object({ firstName: Yup.string() .max(15, "Must be 15 characters or less") .min(3, "Must be at least 3 characters") .required("Required"), lastName: Yup.string() .min(3, "Must be at