MobX State Tree (MST) — State Management

KPITENG — MOBEX STATE TREE — STATE MANAGEMENT

What is MobX-State-Tree?

Why should I use MobX-State-Tree?

MobX-State-Tree Installation

NPM: npm install mobx mobx-state-tree — save

Yarn: yarn add mobx mobx-state-tree

npx create-react-app todo-app

npm install mobx mobx-state-tree mobx-react-lite

npm run start

Getting Started — MobX Entity

Creating Model

Creating Model Instance

Meeting Types

Modifying Data

Snapshot

Snapshot to Model

Getting to the UI

Improving Render Performance

Computed Properties

References

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store