3 ms·
Redux itself is boilerplate heavy but conceptually pretty easy to understand. But once you start building real world apps and have to deal with async actions th
by cageface 9y ago
Redux itself is boilerplate heavy but conceptually pretty easy to understand. But once you start building real world apps and have to deal with async actions things get a lot more complicated and a lot of the benefits of the redux model evaporate. I plan to use mobx on my next react app.
- danenania 9y agoRedux-saga helps a lot for this. It has a bit of a learning curve, but it's an extremely elegant way of dealing with tricky asynchronous workflows once you get a feel for it. I think it's actually my favorite lib in the redux ecosystem.
- cageface 9y agoRedux saga provides a nice syntax I agree but leans on some fairly advanced JS concepts. It's a lot to ask a beginner to digest just to display some data from a REST endpoint.
- joshuahutt 9y agoI went from Redux to MobX in one of my recent projects and it was a breath of fresh air. It's so much easier to work with, and more performant in my situation, too.
- Sacho 9y agoMobx doesn't do anything to alleviate the complexity that comes eith asynchronicity. It does help with boilerplate, though. I think most people are more comfortable with object composition rather than function composition, so Mobx feels more natural.