Generated by XState Viz: https://xstate.js.org/viz
✓ Published0🌍 Public
Aadamscott
Last edited Feb 12, 2020
Created on Feb 12, 2020
This example shows a state machine for a free-trial signup flow, progressing from an idle state through name entry to an email state. The machine starts in `idle`, waits for a `READY` event, then moves to `name`, where an entry action logs the context and event before automatically raising a `NEXT` event to transition to `email`. It uses XState’s `Machine` and `raise` API to define states, transitions, and context with a `retries` counter. The code includes a custom `nameEntry` action that triggers the next step programmatically.
AI-generated description