Answers for "how to validate password and confirm password on react form hook"

-1

how to validate password and confirm password on react form hook

const validationSchema = yup.object().shape({
    newPassword: yup.string()
      .required('New Password is required'),
    confirmPassword: yup.string()
      .required('Confirm Password is required')
      .oneOf([yup.ref('password'), null], 'Passwords does not match'),
  });
Posted by: Guest on July-28-2020

Code answers related to "how to validate password and confirm password on react form hook"

Code answers related to "Javascript"

Browse Popular Code Answers by Language