Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
- use React Hooks, useState and useEffect for state management and side effects.
- Date calculations and validations: Implemented complex date difference calculations and input validations.
During this project, I faced several challenges that helped me grow as a developer:
- 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
- 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 GitHubJoin 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