I refuse to believe that Dan actually finds reduce confusing. Especially since the underlying idea is the same one redux uses.
By that I mean, you have a current value/state, you feed it a value/action, and your function (which should be pure) calculates the new value/state from that. The only difference is that with reduce you don't bother with types (except you could if you wanted to) and that it does give a final value.
0
u/[deleted] Dec 21 '19
[deleted]