Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Practicing State Management in React and Animations in Tailwind

react, tailwind-css
tOnski86•330
@tOnski86
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 am happy that this did not take me 2 days like the last one I did 😁

However - there are still a lot of things to learn.

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

I am getting reps in React to manage state. The tip state is a confusing one, because I am using controlled elements, I ran into the following issues:

  • Both the buttons with the fixed percentage and the custom field are sharing the same state for the tips. Updating these two was a big challenge.
  • I have to get better at handling forms and managing custom validations.
  • I feel like I am "hacking" my animations. I have to use a useEffect hook to toggle classes.
What specific areas of your project would you like help with?

Back to the drawing board and learn more about state management.

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