Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Age calculator app Solution

accessibility, react, tailwind-css
Sean Hoang HIll•240
@seanhillweb
A solution to the Age calculator app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello Frontend Mentor Community,

This is my solution for the Age Calculator App. I am a free user, and do not have access to the design files from the Pro version. I built this app using React, Next.js, TailwindCSS, and React Hook Forms. This is my first time using React Hook Forms.

Difficulties Encountered:

Multi-input validation: I was unable to find a clean way to validate all of the fields to make sure the date is valid. My initial approach was to use date-fns and the isValid method for verification, but I wasn't sure how to pass the form data before submission.

Questions:

Does anyone have any experience setting up a form schema with Yup or Zod? What would be a good structure using this project as an example?

Technologies Used:

React React Hook Forms Next.js TailwindCSS Date-FNS

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Sean Hoang HIll's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License