Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
This was my first time using React on my own 🎉 I'm proud of my form validation!
What challenges did you encounter, and how did you overcome them?Form validation was a real challenge for me. I began with individual useState hooks for each of the inputs, however this made my code very messy and it became difficult to keep track of where my data was. Additionally, I was completing my form validation as I was completing my conditional rendering.
To solve this problem I used state objects to take care of the following:
- Form inputs
- Form errors
- Age outputs
This made my code clean and easy to debug
What specific areas of your project would you like help with?Please have a read of my code and let me know if it is easy to follow and understand!
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