Wykorzystanie JavaScript YUP z matematyką pewne dyskietki w formach

const schema = Yup.object().shape({
		mail: Yup.string()
			.trim()
			.matches(emailRegexp, "Email is not properly formatted")
			.required("Email is not properly formatted"),
		password: Yup.string().min(
			8,
			"Password shall be at least 8 characters long",
		),
		confirmPassword: Yup.string().oneOf(
			[Yup.ref("password"), null],
			"Passwords must match",
		),
});
Purple Team