Design comparison
SolutionDesign
Solution retrospective
Here's my React solution, it still got some bugs I'm working on. Like checking for negative numbers, and the custom tip % requires a decimal version of a percent.
I was really having trouble making an onClick handler function for my tip buttons, thus keeping me from turning my buttons to components ( because to my understanding I need a handler function to update the ( active tip ) state from a child component ).
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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