Form validation - Mortgage repayment calculator using React

Solution retrospective
I went a bit beyond the original requirements by implementing typo handling. Although it was a small addition, it taught me a lot about managing state. For example, I asked myself: How should I display error messages for each individual field? What if each field has a different type of invalid input—one is empty, while another has a typo? This made me consider how to structure and manage state in a more flexible and scalable way.
What specific areas of your project would you like help with?I've already done some basic refactoring, but if you spot any areas where the code could be further improved—especially to reduce repetition or make it more reusable—I'd really appreciate your suggestions!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Peetawit Vongchanapibul'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