fsmxjs
01 Toggle 02 Form Wizard 03 Queue Mode 04 Serialization 05 Async Search 06 Data Fetch
fsmxjs / examples

Six interactive demos showing how finite state machines handle the complexity that ad-hoc flags and conditionals can't.

01
Toggle
Two states, one event, transition actions State transitions
›
02
Form Wizard
Multi-step form with validation guards Guards
›
03
Queue Mode
Safe sends from within subscriber callbacks queue: true
›
04
Serialization
Snapshot persistence and hydration serializeSnapshot
›
05
Async Search
takeLatest cancellation with @fsmxjs/async @fsmxjs/async
›
06
Data Fetch
Fetch with error handling and retry limit @fsmxjs/async
›
fsmxjs · MIT License
GitHub npm