Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

Form validation - Mortgage repayment calculator using React

react
P
Peetawit Vongchanapibul•200
@pete13232
A solution to the Mortgage repayment calculator challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

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!

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 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

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