Need advice about which tool to choose?Ask the StackShare community!
KnockoutJS vs MobX: What are the differences?
What is KnockoutJS? Knockout makes it easier to create rich, responsive UIs with JavaScript. Knockout is a JavaScript MVVM (a modern variant of MVC) library that makes it easier to create rich, desktop-like user interfaces with JavaScript and HTML. It uses observers to make your UI automatically stay in sync with an underlying data model, along with a powerful and extensible set of declarative bindings to enable productive development.
What is 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.
KnockoutJS belongs to "Javascript MVC Frameworks" category of the tech stack, while MobX can be primarily classified under "State Management Library".
KnockoutJS 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 KnockoutJS with 9.54K GitHub stars and 1.54K GitHub forks.
Udemy, Swat.io, and Talkable are some of the popular companies that use MobX, whereas KnockoutJS is used by Runscope, Huddle, and EasyPreOrders. MobX has a broader approval, being mentioned in 52 company stacks & 32 developers stacks; compared to KnockoutJS, which is listed in 28 company stacks and 21 developer stacks.
Pros of Knockout
- Data centered application3
- Great for validations2
- Open source1
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 Knockout
Cons of MobX
- Maturity1