react component optimization
Cześć Łukasz,
I'd personally move some of the logic to the separate file. Eg. getBudgedSummary.That way, Your component will be more readable and easier to test.
btw,
instead of expensesSum: expensesSum, You can simply go for expensesSum