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

React.js Responsive Mortgage Calculator App

react, vite
Elizabeth Sotomayor•230
@elizabethrsotomayor
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 most proud of working with a new framework (React.js) and learning more about CSS selectors like ::before and ::after. Going into this project, I had some familiarity with React but had not tried building a project on my own so this was a great way to brush up and learn some new skills. Next time I would try to better plan out how the app would be structured because I had an idea of how everything would work together but didn't fully write out my plan.

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

A major challenge I encountered was with managing the state in both the and components. In order to fetch the values inputted into the calculator, I had to handle the state in the parent component (``) and pass both the values and set state functions as props to the child components. Using the React documentation helped illustrate this concept more clearly and helped me understand how this is implemented.

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

I would like help with rendering custom error states as shown in the mockup. I made the input fields required but aside from that it doesn't change the color of the labels when a field is empty.

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 Elizabeth Sotomayor'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

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