Skip to main content

XState

I model state machines by first listing events (press/do something), tasks (side effects, split by services (long running and you care about them ending) and actions (sync, take no time at all)) together with lifecycle (when it's active). Services can spawn events.

This guide & docs are great.

Timsy is a nice lean alternative to XState.

Notes