Installation
- NPM:
npm install mobx mobx-state-tree --save
- Yarn:
yarn add mobx mobx-state-tree
- CDN: https://unpkg.com/mobx-state-tree/dist/mobx-state-tree.umd.js (exposed as
window.mobxStateTree
) - CodeSandbox TodoList demo fork for testing and bug reporting
TypeScript typings are included in the packages. Use module: "commonjs"
or moduleResolution: "node"
to make sure they are picked up automatically in any consuming project.
Supported environments:
- MobX-State-Tree 4+ runs in any JavaScript environment, including browsers, Node, React Native (including Hermes), and more
Supported devtools:
- Reactotron
- MobX DevTools
- The Redux DevTools can be connected as well as demonstrated here