Age calculator using React

Solution retrospective
Hello community, I share my first solution corresponding to this challenge that I thought was great. I hope you like it and I´m very happy to read your feedback.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @jbrekalo
Looks cool but check a bit the error handling and the calculations. For example, it calculates like there is no error if I put in 31st of February as input, and we know that February can have maximum of 29 days and that is on a leap year.
Also, if we put in the year 2024. it preforms the calculation even the date is in the future, if we input month lower than 1 and higher than 12 there is also no error. If we input the date 1/1/0 it says it was 23 years ago.
Hope this helped to improve your code a bit! :)
Marked as helpful - @peanutbutterjlly
your solution looks AMAZING!
I tested it out and got NaN for the years months and days though 🥺.
functionality aside, I REALLY like the way this looks and animates 😍
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord