3 ms·
I feel like React + Redux + some kinda lens mechanism is a really good fit for UI development. Is there anything like that already?
by kajaktum 4y ago
I feel like React + Redux + some kinda lens mechanism is a really good fit for UI development. Is there anything like that already?
- ivxvm 4y ago> some kinda lens mechanism Does immer count? :)
- kajaktum 4y agoYou still have to reduce the entire state no? I would imagine it to be something like: struct A { b : B } impl Reducer<Action> for A {} impl Reducer<Action> for B {} Now the reducer logic is spread out across the state. Sure, every sub-state now need to handle Action every time but with tools like ADT and pattern matching I don't think its as bad. I feel like this will be cumbersome, but the complexity should scale linearly.