Tip Calculator using React

Solution retrospective
you're welcome to post ur suggestions on this solution... Ty
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MuriWolf
Hi bro! whats up?
Congrats for finishing this challenge!
I just wanna give you some advices, then you can fix it. First, you layout looks great! But the math part is not doing well, for me just worked after i press the reset button, but the math is not 100% correct. In the tip amount, you could use: (bill * percentage / 100) / people, and for the total: (bill * percentage / 100) + bill) / people. (The percentage is the 5%, 10%, 15%... and you could execute the math when the user clicks in the percentage, then the program gets the two inputs, do math and show the results.)
If you have some question or anything, please do! I will try to help you.
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