Examples
Live Page
- Public demo: MobXstate live page
- Local dev: run
npm run devand open/examples/live/in the Vite server.
The live page shows:
- cat routine with actions, guards, and delays
- dog walk with invoke and delayed transitions
- checkout flow with explicit process states
- shelter checklist with parallel regions
Standalone Example Files
These example files are included in repository typechecking.
examples/standalone/counter.tsshows regular actions on a MobX store.examples/standalone/async-loader.tsshows promise invoke andonDone.examples/standalone/live-stream.tsshows lifecycle effects and cleanup.examples/standalone/parallel-checkout.tsshows parallel regions and parentonDone.examples/standalone/traffic-light.tsshows entry actions and named delays.examples/standalone/typegen-narrowing.tsshows typegen-aware callback narrowing.examples/standalone/wizard-flow.tsshows nested states, shallow history, guards, and invoke error handling.
Repository Navigation
- Repo-level examples guide lives in examples/README.md.
- Release and packaging docs live in RELEASING.md.