Mastering UIs with Finite State Machines
summary
Argues finite state machines (Mealy-style) replace fragile if/else UI code with a deterministic, idempotent model that makes race conditions and double-fetch bugs impossible; a live demo runs a fetch example in vanilla JavaScript + React and uses commands to register side effects; testing is reduced to walking states with snapshot tests (about 70% coverage reported); production use covers both React Web and React Native, with libraries like XState recommended and a Mars rover cited as a real-world FSM.
AI-written summary · about
chapters (8)
- 0:00Start
- 8:19Top-Down Approach
- 13:19Key Features
- 17:43Rendering
- 18:42Side Effects
- 20:17Commands
- 27:30Testing
- 27:53Resources
related talks
25mMastering UIs with Finite State Machines
45mMastering UIs with Finite State Machines
28mState machines for frontend state management
47mMastering Complex UI: State Machines and Reactive Patterns
45mState of the Art User Interfaces with State Machines
20mSetState, We Need to Talk!
34mState Machines Meet React Hooks
38mState of the Art Web User Interfaces with State Machines
