Design comparison
SolutionDesign
Solution retrospective
I had a problem with state update in result, I'm not sure if I did it the right way. When changing the inputs, the result is wrong, it is correct after choosing the percentages.
Community feedback
- @FynnSchneider05Posted about 1 year ago
Hi, your project looks amazing.
I don't know how exactly react works but I had the same problem while only using html and js. I added a function that calculates the results and updates the UI. I added a 'blur' eventListener to the inputs which called this function everytime I exited the inputs.
Hope I could help. Lg Fynn
Marked as helpful0
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