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

Mortgage Repayment Calculator using React and Tailwind-css

stephany247•880
@stephany247
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'm proud of successfully formatting the input values while maintaining smooth user interaction. Initially, the formatting caused issues like preventing input beyond three digits and showing an unwanted initial zero, but I resolved them with better state handling. Next time, I’d plan for edge cases earlier and find a way to prevent autofill from changing the background without affecting accessibility.

What challenges did you encounter, and how did you overcome them?

I faced issues with input formatting, such as limiting input to three digits and displaying an initial zero. Additionally, autofill changed the background color unexpectedly. I fixed the formatting by refining state management and ensuring controlled inputs handled numbers correctly. To prevent the background change, I used CSS to override browser styles while maintaining accessibility.

What specific areas of your project would you like help with?

I’d appreciate feedback on improving input formatting without limiting user experience, especially when handling large numbers dynamically. If there are best practices for managing controlled inputs efficiently in React, I’d love to hear them!

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