kristi-h / retireCalc

1 stars 0 forks source link

data validation #2

Open kristi-h opened 3 months ago

kristi-h commented 3 months ago

create logic for validating input data from user

jucheng925 commented 3 months ago

Copied from Frontend Mentor

"Receive validation errors if: Any field is empty when the form is submitted The day number is not between 1-31 The month number is not between 1-12 The date is in the future The date is invalid, e.g. 31/04/1991 (there are 30 days in April)"

jucheng925 commented 3 months ago

https://codewithpawan.medium.com/form-validation-in-react-a-comprehensive-guide-with-examples-c12e1c8671f2 good blog regarding form validation that provides examples