Komunikat o błędzie sprawdzania poprawności typu
email: Yup.string().required('this will be displayed when empty')
.typeError('A number is required')
GutoTrosla
email: Yup.string().required('this will be displayed when empty')
.typeError('A number is required')
// min and max
Yup.object().shape({
temperature: Yup.number()
.min(0, 'Min value 0.')
.max(30, 'Max value 30.'),
})