DEV Community

Cover image for MobX vs Redux comparison
Adrian Twarog
Adrian Twarog

Posted on

MobX vs Redux comparison

Not many people know that MobX and Redux started around the same time, provide state management for your library, but achieve it in different ways.

I try to compare the two libraries and how they work, as well as their advantages and disadvantages.

  • What MobX is
  • What Redux is
  • How they compare
  • Where you might use them
  • What you should learn depending on your situation

Top comments (5)

Collapse
 
guandjoy profile image
Yurko Turskiy • Edited

Thanks for the video. It clarified the differences for me. I use Apollo Client with a built-in state manager. For small projects – useReducer state.

But I'm curious about observables and reactive programming, so that's why I'm here. Do people usually use RxJS with MobX?

Collapse
 
jsardev profile image
Jakub Sarnowski

I'm not sure, but what I've understand from MobX docs is that you don't use RxJS with MobX, because MobX is already reactive - you don't need RxJS additionally.

Collapse
 
jsardev profile image
Jakub Sarnowski

Hey Adrian. Nice comparison! Although I think your video is just begging for live coding examples. Those concepts are not always easy to understand and having code next to your commentary would be amazing!

Collapse
 
crimsonmed profile image
Médéric Burlet

Awesome video!!! I would love to see you take a look at overmindjs.
I have used it on many projects in pure js, typescript, react, react native and it has handled so well.

overmindjs.org/

Collapse
 
adriantwarog profile image
Adrian Twarog

Thanks will take a look!