~/talk

State Machines Meet React Hooks

Talkat JSConf.Asia 2019 · 2019-06-14..06-16· [react]
slides:none on file

Shows a stepwise rebuild of a modal/calendar UI using XState with the useMachine hook, demonstrating hierarchical states, guards and event payloads to route open→view/edit/create/list flows. The claim is concrete: state machines make every state visible and easier to test; the implementation is hooked into Redux devtools and actually works for the examples, but bugs remain from view/state mismatches, so integration tests are required. The demo uses named guards, nested states and event-driven transitions.

AI-written summary · about

  1. 0:00Introduction
  2. 2:49What is state machines
  3. 6:19The problem
  4. 8:04Solution Interaction
  5. 9:52Journey
  6. 10:20Implementation
  7. 11:18Simple Machine
  8. 14:13View vs Edit
  9. 15:54Hierarchical State
  10. 17:27Visible State
  11. 19:27Create Screen
  12. 23:32New Condition
  13. 24:36Multiple Data
  14. 26:01In Solutions
  15. 28:17Comparison
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.