Design comparison
Solution retrospective
try to implement it with react hook form, but current case not sure how to use react hook form to trigger on-time update when type in number. Next time if app require update on time then maybe should use ori react form.
What challenges did you encounter, and how did you overcome them?- input field doesn't update on time.
- reset button no reset tip amount and total amount.
- next time need to try ori react form first
Need more practice of react hook form
Community feedback
- @nikbhaladhare2104Posted 5 months ago
Everything looks great. Some tips from my side: 1. Use map (array of numbers, ex: [5,10,15,25,50]) when creating the tip button container as it will make you write less code 2. It didnt have the submit button there. Maybe try using Context hook from react to manage global state and change them in real time rather than getting them through props.
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