
As an interface grows, keeping it in sync with its data gets harder. A cart total, a badge count and a filtered list all depend on the same state, and every change has to reach each of them without re-rendering the whole screen. MobX handles that bookkeeping for you: you mark which data can change, and it works out which parts of the interface depend on it and updates only those.
This article explains what MobX is, how its reactive model works, where it fits, when another approach is better, and how it compares with Redux, Zustand and the Flutter options.
What is MobX?
MobX is an open-source state management library for JavaScript and TypeScript, used mostly with React and React Native. It is based on transparent functional reactive programming, summed up in its own motto: "Anything that can be derived from the application state, should be. Automatically."
MobX was created by Michel Weststrate. It first appeared on npm in March 2015 under the name mobservable, reached 1.0 in October 2015 and was renamed MobX with version 2.0 in February 2016. Its documentation credits Mendix for supporting the project and for proving it in performance-critical applications.
The library has gone through two notable modernisations. MobX 6, released in September 2020, made decorators optional and introduced makeObservable and makeAutoObservable, so plain classes and objects could become reactive without special syntax. MobX 7, released on 30 July 2026, is a cleanup release: it always uses JavaScript Proxies, drops the old decorator syntax and the non-Proxy fallback, replaces namespaced helpers such as observable.ref and action.bound with named exports like observableRef and actionBound, and cuts the production bundle from about 17 KiB to about 14 KiB gzipped. Its React bindings, mobx-react-lite 5 and mobx-react 10, now require React 18 or later.
How MobX works
MobX has four concepts.
Observable state. Data that can change, such as a list of todos or the current user, is made observable, usually by calling makeAutoObservable(this) in a class constructor. MobX then tracks every read of that data.
Actions. Methods that change observable state are actions. MobX batches the changes inside an action, so observers see one consistent update rather than several partial ones.
Derivations, or computed values. A getter such as get remaining() { return this.todos.filter(t => !t.done).length } becomes a computed value. MobX caches it and recalculates it only when one of the observables it read has changed.
Reactions. Side effects that run when state changes. In React, wrapping a component with observer from mobx-react-lite turns its render into a reaction: the component re-renders when, and only when, the observables it actually used change. autorun, reaction and when cover side effects outside the UI, such as saving to storage or logging.
Because MobX tracks dependencies at run time, you do not write selectors or dependency lists. State can be mutated directly inside actions, in ordinary object-oriented code.
Key features
- Fine-grained re-rendering: components update only for the data they read.
- Little boilerplate: no reducers, action types or selectors.
- Plain classes and objects as stores, which suits object-oriented domain models.
- Cached computed values that stay consistent with the state they depend on.
- Framework-independent core, with bindings for React and React Native, and a port for Dart and Flutter.
- TypeScript support throughout the API.
Where MobX is used
- Data-heavy React dashboards and admin panels with many interdependent values on one screen.
- Form-driven applications, where fields, validation and derived totals change together.
- React Native apps, using the same stores and
observercomponents as on the web. - Flutter apps, through MobX for Dart, which pairs the
mobxpackage withflutter_mobxfor widgets andmobx_codegenfor generated boilerplate.
When to choose MobX, and when not to
Choose MobX when:
- The domain model is rich and naturally expressed as classes with methods.
- A screen derives many values from shared state, and you want them recalculated automatically.
- You want minimal ceremony and fine-grained updates without hand-written selectors.
Look elsewhere when:
- You want every state change to be explicit and replayable, with strict time-travel debugging. Redux with Redux Toolkit makes that the default.
- The state is small and mostly UI-local. A lighter store such as Zustand, or React's own state and context, is enough.
- The team finds implicit tracking hard to reason about. Reactivity that happens "automatically" can surprise developers who expect explicit subscriptions.
- You are on Flutter and want the patterns most Flutter teams use; Flutter Bloc or Riverpod has a larger Flutter community than MobX for Dart.
MobX and its alternatives
| Library | Model | Boilerplate | Best fit |
|---|---|---|---|
| MobX | Observable, mutable state with automatic tracking | Low | Rich domain models, data-heavy UIs |
| Redux Toolkit | Single store, immutable updates via reducers | Medium | Large teams, strict predictability |
| Zustand | Small hook-based store | Very low | Simple global state in React |
| MobX-State-Tree | MobX with typed models and snapshots | Medium | Structured, serialisable state trees |
| GetX (Flutter) | Reactive state plus routing and DI | Low | Fast Flutter projects |
The classic comparison is MobX vs Redux. Redux keeps state immutable and changes it only through dispatched actions and reducers, which makes every change visible and easy to trace. MobX lets you change state directly and tracks what depends on it, which means less code and finer-grained updates, but less explicit control flow. Both are mature; the choice depends on whether the team values traceability or brevity more. In Flutter, the closest reactive cousin is GetX, which also adds routing and dependency injection.
How we use MobX at Internative
We use MobX in projects that need flexible state management with minimal overhead. Its reactive model lets us build responsive interfaces while keeping application logic clean and maintainable.
If you are building a data-heavy web application or dashboard, our web application development team can help you choose the state model that fits it.
Frequently asked questions
Is MobX still worth using?
Yes, for the right projects. MobX is actively maintained, its MobX 7 release modernised the library and reduced its size, and it remains a strong fit for rich domain models and data-heavy interfaces. For simple global state, smaller stores such as Zustand are often enough.
What is the difference between MobX and Redux?
Redux uses one immutable store that changes only through actions and reducers, which makes changes explicit and traceable. MobX uses observable objects that you mutate inside actions, and it automatically re-renders whatever depends on them. MobX needs less code; Redux gives more explicit control.
What is mobx-react-lite?
It is the package that connects MobX to React function components. Its observer wrapper makes a component re-render when the observables it reads change, and useLocalObservable creates component-local state. The separate mobx-react package adds support for class components.
Can MobX be used with Flutter?
Yes. MobX for Dart ports the same ideas to Flutter. You annotate store fields with @observable and methods with @action, a code generator writes the boilerplate, and the Observer widget from flutter_mobx rebuilds when the observables it uses change.
Is MobX free?
Yes. MobX is open source under the MIT licence and free to use in commercial projects.
Keep reading
The articles that follow this one.



