Skip to main content
100%

Generated by XState Viz: https://xstate.js.org/viz

✓ Published0🌍 Public
Aafbroman
Last edited Aug 3, 2020
Created on Aug 3, 2020

This example shows a finite-state machine for a display with two main states, hidden and visible, where visible runs three parallel substates for power, mode, and brightness. The machine uses XState’s `Machine` API with initial states, event transitions like `TURN_ON`, `TURN_OFF`, and `SWITCH`, and a delayed `TIMEOUT` transition after 5000 ms. The rendered diagram from XState Viz visually represents the state hierarchy, parallel regions, and event-driven edges, making the logic of state transitions and timing explicit.

AI-generated description

Similar vizzes