~/talk

You're a Wizard Form, Harry

Talkat Infobip Shift 2021 · 2021-09-07..09-08· [frontend-architecture, react]
slides:none on file

A five‑step wizard form is implemented with XState driving explicit states (contact, ingredients, delivery, delivery address, order completed) and a form library holding values via React Final Form. Next triggers form validation and sends a typed event carrying submitted values; previous does not validate. A guard (isDelivery) conditionally skips the delivery address step when delivery is not chosen. The machine visualizes in stately.ai, code is on GitHub, and the demo works end to end.

AI-written summary · about

  1. 0:00Introduction to wizard forms
  2. 0:34What is a wizard form
  3. 1:14Why use a wizard form
  4. 2:35Implementing wizard forms
  5. 3:52Project overview
  6. 4:48State machine design
  7. 6:58Scaffolding the application
  8. 8:35Defining machine logic
  9. 10:17Implementing transitions
  10. 13:07Connecting React to XState
  11. 15:03Handling form events
  12. 17:12Refining form navigation
  13. 20:04Adding conditional logic
  14. 22:23Testing the conditional flow
  15. 25:30Visualizing the state machine
  16. 27:12Conclusion and productivity
~/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.