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

Tip calculator app (React, Vite, Vitest, Typescript, Tailwind)

react, tailwind-css, typescript, vite, vitest
P
Javier Eufracio•320
@Javieer57
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?

I added unit tests and integration tests that helped me avoid breaking parts that were already working as I made changes and refactorings.

Maybe I would follow the TDD approach for testing because when I add tests after the components are already created, I end up writing tests that I already know will pass and I forget to test scenarios that shouldn’t pass.

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

When using Redux with TypeScript, I didn’t know how to get and match the types I expected in the store. Fortunately, Redux has documentation to cover this scenario (https://redux-toolkit.js.org/usage/usage-with-typescript).

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

Any advice regarding the implementation of testing is welcome.

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 Javier Eufracio'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