Practicing State Management in React and Animations in Tailwind

Solution retrospective
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.
Back to the drawing board and learn more about state management.
Please log in to post a comment
Log in with GitHubCommunity 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