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

Tip Calculator

react, tailwind-css, vite
Utkarsh9571•640
@Utkarsh9571
A solution to the Tip calculator app 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?

Well, the calculation logic in this calculator is pretty simple, so i knew how it's gonna work, and i applied that logic directly to the destinated div and it was working great.

Also i still need to ask something from gemini, but this time i didn't like the solutions so modified them according to me and make it work nicely.

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

I missed a part of how to display the error message, i was creating another function for that, but then where do call that function, those kind of things, then when i asked gemini, then i remembered and corrected it by putting in the input in which the message is supposed to be for.

separating the Custom tip and pre-determined tip options, that was tricky for me, that took most of the time, also because i don't want to use gemini's code because that will overwrite my initial calculation logic, but eventually i completed it.

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

Please take 5 minutes, and give my code read, and suggests.

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