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 App using React and Sass

Marco 185

@devMarco02

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


Practicing React. If you have any suggestions, feel free to comment.

Community feedback

David Dyer 185

@davidbdyer

Posted

Have you considered removing the arrows in the number input fields since they aren't in the original design? You might also limit the number of people field to not accept less than 1.

Also might prevent the calculation when the output will be infinity.

Overall nice job!

Marked as helpful

1

Marco 185

@devMarco02

Posted

thanks @davidbdeath .I fixed it. I added Math.floor() to round down number of people, to avoid decimal values.

1
David Dyer 185

@davidbdyer

Posted

@devMarco02 Nice! That's a better solution than what I did.

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