Need advice about which tool to choose?Ask the StackShare community!
Flux vs MobX: What are the differences?
Flux: Application Architecture for Building User Interfaces. Flux is the application architecture that Facebook uses for building client-side web applications. It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code; 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.
Flux can be classified as a tool in the "Javascript UI Libraries" category, while MobX is grouped under "State Management Library".
"Unidirectional data flow" is the primary reason why developers consider Flux over the competitors, whereas "It's just stupidly simple, yet so magical" was stated as the key factor in picking MobX.
Flux and MobX are both open source tools. It seems that MobX with 19.8K GitHub stars and 1.21K forks on GitHub has more adoption than Flux with 16.2K GitHub stars and 3.62K GitHub forks.
According to the StackShare community, Flux has a broader approval, being mentioned in 67 company stacks & 29 developers stacks; compared to MobX, which is listed in 52 company stacks and 32 developer stacks.
Pros of Flux
- Unidirectional data flow44
- Architecture32
- Structure and Data Flow19
- Not MVC14
- Open source12
- Created by facebook6
- A gestalt shift3
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
Sign up to add or upvote prosMake informed product decisions
Cons of Flux
Cons of MobX
- Maturity1