Skip to content
Submitted almost 2 years ago

Tip Calculator App

react, vite, vitest
P
LVL 4
@richardcyrus
A solution to the Tip calculator app challenge

Solution retrospective


What challenges did you encounter, and how did you overcome them?

React controlled inputs provide a challenge for validating the inputs with state updates fired for each keystroke from the user. I haven't solve it yet, but I should find a way to delay the input validation. I'm considering useDeferredValue over a custom debounce hook. May add that as I refactor the app into components.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Richard Cyrus’s solution.

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