Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
In this application, I refreshed my knowledge of React hooks to create this tip calculator. The tip amount is calculated simultaneously as the user inputs the total bill, tip percentage, and number of people, providing instant feedback. I also enhanced my understanding of adding active or error stylings to elements, for better user experience through intuitive form validation.
I think for next time, I would refactor the code with a useReducer hook for cleaner code structure when dealing with multiple state variables
What specific areas of your project would you like help with?None that I can think of, but any input or advice is welcome!
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