Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive age calculator app using React and TailwindCSS

Lianne 50

@erath-rise

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

  1. use React Hooks, useState and useEffect for state management and side effects.
  2. Date calculations and validations: Implemented complex date difference calculations and input validations.

What challenges did you encounter, and how did you overcome them?

During this project, I faced several challenges that helped me grow as a developer:

  1. Complex Date Calculations: Accurately calculating age differences, considering leap years and varying month lengths. Solution: I implemented a detailed algorithm that accounts for these variations
  2. State Management: Managing multiple interrelated states (day, month, year, errors, result). Solution: I used React's useState hook and created a useEffect to trigger calculations

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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