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.
FynnSchneider05
@FynnSchneider05All comments
- @SoulRvr29Submitted about 1 year ago@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 - @stefanvulpe-devSubmitted about 1 year ago
This has been my first ever project built using different kinds of frameworks. It had a couple of difficult parts, the most important being the state management of certain components, but in the end I think I handled that well. Any feedback would be appreciated.
@FynnSchneider05Posted about 1 year agoHi, me again.
I looked at your project again and if I am right you just multiplied the tip per person with the amount of people to calculate the total amount.
I think the total amount is also per personen. And I understood it as the total amount of money everyone has to pay to pay the bill plus the tip.
So its (bill + tip) / amount of people.
If it was intended as it is, I'm sorry, but I thought I'd mention it.
Marked as helpful0 - @stefanvulpe-devSubmitted about 1 year ago
This has been my first ever project built using different kinds of frameworks. It had a couple of difficult parts, the most important being the state management of certain components, but in the end I think I handled that well. Any feedback would be appreciated.
@FynnSchneider05Posted about 1 year agoHi, your project looks amazing.
But I think there is something wrong with the calculation of the total amount. With a 10$ bill, a 10% tip and 2 people, it says everyone has to pay a total of 1$.
I tried to look at your code but I just started learing javascript and don't know anithing about react so I coudn't understand anything.
Lg Fynn
0