Document cover
Sometimes Buttons are Workflows, Not just CallbacksA "restore version" button isn't one operation. It's loading, diffing, confirming, restoring, verifying, and failing — gracefully. Seven states. Model it as a state machine, not a pile of useStates. How I model complex UI workflows in XState, with real patterns from Seed's editor.