Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Tip Calculator - React

#react

@tcase629

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


I thought I did ok. My only question is how to not get the tip amount to display on the custom input when selecting another button. Any thoughts?

Community feedback

@fazzaamiarso

Posted

Great Job! I think the problem is because you use the tip state as a value on your custom input. So, when another button is selected, the tip value will be passed to your custom input as well.

0
yusuf 150

@sholatel

Posted

You have done a fantastic job! However, the input fields would have been made type text or tel in order to stop the increment and decrement icon in the fields. And concerning your question, can you explain better?

0

Please log in to post a comment

Log in with GitHub
Discord logo

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