Version: XState v4
Advanced topics in XState
Learn even more about XState.
Using React hooks are the easiest way to use state machines in your components. You can use the official @xstate/react package to give you useful hooks out of the box, such as useMachine.
XState is compatible with the SCXML (State Chart XML: State Machine Notation for Control Abstraction) specification. This page contains details on where our API relates to the SCXML specification.