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

Mortgage Calculator build on React

react, framer-motion
Strafe•20
@stefkolm
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 the small animation I created for when the user presses the 'Calculate Repayments' button. It's super clean and adds interactivity to the website.

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

It was quite challenging to make the red error text pop up when the user submits the form without filling in some input fields. I needed to ensure the text would appear from the bottom of the field that wasn’t filled in. To solve this i created a list of input fields and if a value is empty it will display the red text underneath.

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

This is my first React.js project, and I’m wondering if I’ve used components for input fields and useState correctly. I’m also looking to identify any places in the code where I might have hardcoded solutions and could simplify the implementation with less complexity.

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 Strafe'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
Frontend Mentor logo

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

Frontend Mentor

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

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