These are chat archives for jdubray/sam
Your code is the state-machine, not the other way around
switchstatements. Now, some people don't think that bunches of
switchstatements are messy; I'm not here to argue about that :)
It's been a while I have coded anything in WinForms, the SAM pattern emits props (from the State function) and listens to events, as long as the view can be implemented with that contract it should work. Angular, for instance, does not support functional HTML. Based on my Angular experience, you might want to implement the pattern in two stages:
If you want to share some code, I can try to illustrate how it would look.