For XState v4, see the XState v4 documentation.
Get started quickly with XState and Stately Studio.
You can install XState using your favorite package manager or embed the `` directly from a CDN.
Want to jump straight into XState and Stately Studio? Start here!
Following our guide below, migrating from XState version 4 to version 5 should be straightforward. If you get stuck or have any questions, please reach out to the Stately team on our Discord.
XState v5 beta examples are also available in the /examples directory. Many of the examples have a CodeSandbox link where you can run the example in your browser.
Use this cheatsheet to quickly look up the syntax for XState v5 beta.