Design comparison
SolutionDesign
Solution retrospective
Practicing React. If you have any suggestions, feel free to comment.
Community feedback
- @davidbdyerPosted about 3 years ago
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 helpful1@devMarco02Posted about 3 years agothanks @davidbdeath .I fixed it. I added Math.floor() to round down number of people, to avoid decimal values.
1@davidbdyerPosted about 3 years ago@devMarco02 Nice! That's a better solution than what I did.
0
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