Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

mobx-state-tree

> 编程语言
Open source

Full-featured reactive state management without the boilerplate

7.0K stars0 likes2 views
WebsiteGitHub

About

Full-featured reactive state management without the boilerplate

mobx-state-tree

What is mobx-state-tree?

Technically speaking, mobx-state-tree (also known as MST) is a state container system built on MobX, a functional reactive state library.

This may not mean much to you, and that’s okay. I’ll explain it like this: MobX is a state management "engine", and MobX-State-Tree gives it structure and common tools you need for your app. MST is valuable in a large team but also useful in smaller applications when you expect your code to scale rapidly. And if we compare it to Redux, MST offers better performance and much less boilerplate code than Redux!

MobX is one of the most popular Redux alternatives and is used (along with MobX-State-Tree) by companies worldwide. MST plays very well with TypeScript, React, and React Native, especially when paired with mobx-react-lite. It supports multiple stores, async actions and side effects, enables extremely targeted re-renders for React apps, and much more -- all in a package with zero dependencies other than MobX itself.

Note: you don't need to know how to use MobX in order to use MST.

Getting started

See the Getting started tutorial or follow the free egghead.io course.

Official docs can be found at http://mobx-state-tree.js.org/

Quick Code Example

There's nothing quite like looking at some code to get a feel for a library. Check out this small example of an author and list of tweets by that author.

…

Thanks!

  • Michel Weststrate for creating MobX, MobX-State-Tree, and MobX-React.
  • Infinite Red for supporting ongoing maintenance on MST.
  • Mendix for sponsoring and providing the opportunity to work on exploratory projects like MST.
  • Dan Abramov's work on Redux has strongly influenced the idea of snapshots and transactional actions in MST.
  • Giulio Canti's work on tcomb and type systems in general has strongly influenced the type system of MST.
  • All the early adopters encouraging to pursue this whole idea and proving it is something feasible.

Issues· 100 open

View all issuesOpen on GitHub
  • #2277

    Error when React 19 component has MST node as prop with observer defined later

    bugUpdated Mar 9, 2026
  • #2279

    React 19.2 dev mode breaks MST: "creation of the observable instance must be done on the initializing phase"

    bugneeds reproduction/infoUpdated Mar 9, 2026
  • #1428

    Circular Dependency Issue - TS typings

    TypescriptUpdated Nov 21, 2025
  • #2155

    Better documentation on action/view definitions and their impact on IDE introspection, navigation and refactoring

    docs or examplesUpdated Aug 18, 2025
  • #1551

    getRoot in afterAttach returns undefined in Jest tests

    has PRUpdated Aug 18, 2025
  • #2275

    MSTMap does not have `observe` method, but IMSTMap does

    bugTypescriptUpdated Jul 25, 2025
  • #1987

    Aborting action with AbortController does not work immediately, causes trouble with React.StrictMode

    bughelp/PR welcomelevel: intermediateUpdated Jul 20, 2025
  • #2254

    SnapshotIn Type unexpectedly changed behavior in MST version 7 (when upgrading from 6)

    TypescriptUpdated Apr 5, 2025
  • #2255

    Duplicates in Identifier Cache

    needs reproduction/infoUpdated Mar 27, 2025
  • #2253

    `types.compose` does not override base properties for snapshot requirements.

    help/PR welcomelevel: easydocs or examplesUpdated Mar 17, 2025

> Tags

TypeScripthacktoberfestmobxmobx-state-treemst

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 22, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言