Need advice about which tool to choose?Ask the StackShare community!
MobX vs vuex: What are the differences?
MobX: Simple, scalable state management. MobX is a battle tested library that makes state management simple and scalable by transparently applying functional reactive programming (TFRP). React and MobX together are a powerful combination. React renders the application state by providing mechanisms to translate it into a tree of renderable components. MobX provides the mechanism to store and update the application state that React then uses; vuex: Centralized State Management for Vue.js. Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official devtools extension to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
MobX and vuex can be categorized as "State Management Library" tools.
MobX and vuex are both open source tools. It seems that vuex with 20.7K GitHub stars and 6.67K forks on GitHub has more adoption than MobX with 19.6K GitHub stars and 1.21K GitHub forks.
Flat, Cromon Media Services, and Toucan Toco are some of the popular companies that use vuex, whereas MobX is used by ScreenAware, Udemy, and Swat.io. vuex has a broader approval, being mentioned in 48 company stacks & 71 developers stacks; compared to MobX, which is listed in 51 company stacks and 32 developer stacks.
Pros of MobX
- It's just stupidly simple, yet so magical26
- Easier and cleaner than Redux18
- Fast15
- Automagic updates13
- React integration13
- Computed properties10
- ES6 observers and obversables8
- Global stores7
- Flexible architecture the requeriment3
- Has own router package (mobx-router)1
Pros of vuex
- Debugging2
- Zero-config time-travel2
- Centralized State Management2
- Easy to setup1
Sign up to add or upvote prosMake informed product decisions
Cons of MobX
- Maturity1