In this video we will talk about Form Validation with the help of Formik and Yup Library. We will see how to implement Input field ,select dropdown, checkbox and Radion button using Formik and Yup Validation.
hi brothe bhair hmare usme ErrorMassage run nahi ho rha he Objects are not valid as a React child (found: object with keys {}). If you meant to render a collection of children, use an array instead. ye error de rha he
Just add initial validation and it will work example: email: Yup.string().email('Must be a valid email').max(255).required('Email is required'), It will check that entered value is valid email or not and it will show error when you type
password: yup .string() .required('Please Enter your password') .matches( /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})/, "Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and One Special Case Character" )