Design comparison
Solution retrospective
I'm most proud of how I managed to implement the logic for calculating the age in years, months, and days based on the inputted date of birth. It was quite satisfying to see it working accurately. Next time, I would focus more on error handling and input validation upfront to ensure a smoother user experience from the start.
What challenges did you encounter, and how did you overcome them?One challenge I encountered was dealing with different edge cases when calculating the age, such as leap years and valid date ranges. To overcome this, I researched thoroughly and implemented robust validation logic using conditional statements and helper functions. Additionally, managing the state updates and ensuring re-renders happened appropriately posed some difficulties initially, but leveraging useState and useEffect hooks helped me overcome these challenges effectively.
What specific areas of your project would you like help with?I would appreciate some assistance in optimizing my code further, especially in terms of performance and readability. Additionally, if there are any best practices or design patterns that I could apply to enhance the overall structure of my project, I'd love to learn more about them.
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