|
|
|
|
|
by binocarlos
3037 days ago
|
|
I use redux a lot and love the way you can reason about the state of the app from a single object - which opens up all sorts of useful things like time-travel etc. However - after having plugged in a lot of reducers - the boilerplate code required to do simple stuff becomes a real bore. I've since compromised by using a simple `key-value store` reducer that I can write new values to without needing a new reducer with accompanying actions. I'm sure this is not how it's supposed to be used but nobody ain't got no time for making all that boilerplate just for a button :-) Like I say - it's worth it though - it's amazing how large frontend apps "just work" once you have the state in a single place and the UI rendering from it and it alone. |
|
Drawback is that it uses Observers. I believe the next "killer state library" will use a pattern like what I've described above.