Version: XState v4
XState library
Learn about XState.
Introducing XState
Docs for XState v4 are no longer maintained
Migrate to XState v5
Installation
Docs for XState v4 are no longer maintained
Templates
We have XState templates for TypeScript, React Typescript, Vue, Svelte, and more!
Basics
3 pages.
Actions
2 pages.
Context
States are used for handling your apps states which you know about in advance. Context is a data store that you can use to store any arbitrary values.
Transitions and choices
6 pages.
Running machines
3 pages.
Deep dive: states
7 pages.
Model-based testing
10 pages.
Actors
9 pages.
TypeScript
3 pages.
Packages
7 pages.
Advanced Topics
2 pages.