7 ms·
I just did that (redux -> mobx) as mentioned in another comment and it made the code easier to understand, everything typed with less than half of the code. No
by Keats 10y ago
I just did that (redux -> mobx) as mentioned in another comment and it made the code easier to understand, everything typed with less than half of the code. No more connect or action, we just call the store method (equivalent to a reducer fn) directly.
I also moved most of the components that had state to use observable variables and it's been working well.
- kuon 10y agoI've migrated a small part of my app to MobX to try it, and it's really a threat. Code size divided by like 4. I cannot really speak in term of maintenance or architecture quality yet. But it works.