4 ms·
Has everyone who switched from Redux to MobX been informed that Redux won and they should switch back?
by subsection1h 10y ago
Has everyone who switched from Redux to MobX been informed that Redux won and they should switch back?
- k__ 10y agoI didn't understand this. Isn't MobX the "classical" way of databinding everybody frowned upon for years? And now that React finally eased that pain with Flux and then Redux, they bring it back?
- boubiyeah 10y agoI don't think that many people switched to MobX to be honest. It's very similar to knockout observable and while it works, I don't think I would use that approach again. I suspect people like the familiar OO syntax of MobX. I can't think of advantages it has over plain old streams (most.js, flyd.js)
- Kiro 10y agoWho has switched? Do you have any example?
- simonrobb 10y agoI've just finished my first major redux project and found it incredibly slow to develop with. Write an action type constant/action creator/dispatch/reducer/mapStateToProps just to show an element in response to a mouse click? I found myself cutting corners on the UI because the amount of code I'd have to write makes it seem like a huge task. I'll be evaluating mobx for my next project, definitely, along with Relay. If I can maintain the same view-as-a-function-of-state approach of redux while writing less code, I'm sold.
- Kiro 10y agoThat's interesting. I've only used redux for one project and you may be right. It is tedious to all those things for every little action.
- danmaz74 10y agoI'll admit that I hadn't heard so much about MobX yet. Will re-evaluate when I have time.