const schema = yup
.object({
email: yup.string().email("Field should contain a valid e-mail").max(255).required("E-mail is required"),
})
.required();
let schema = yup.object().shape({
email: yup.string().email('Not a proper email'), // pass your error message string
});
let schema = yup.object().shape({
email: yup.string().email('Not a proper email'), // pass your error message string
});
let schema = yup.object().shape({
email: yup.string().email('Not a proper email'), // pass your error message string
});