how to customize yup error messages form valdiation code example
Example: yup min validation with error message
// min and max
Yup.object().shape({
temperature: Yup.number()
.min(0, 'Min value 0.')
.max(30, 'Max value 30.'),
})