|
|
|
|
|
by shados
3343 days ago
|
|
You don't even need a class, but either way, this is essentially how Elm works. There are very different semantics at work there though. Elm is Fractal, Redux is not. Each have tradeoffs. Some stuff gets simpler, some stuff gets harder (the 1:1:1 scenario where you have a component, an action, and a reducer to achieve 1 thing gets easier. The N to N to N scenario where a reducer can handle things from all over the system, gets harder). It's not misengineered, its just optimized to make a different set of problems easier at the cost of making others harder. |
|