DEV Community

Discussion on: TypeScript's enum + JavaScript's "in" = 👍

Collapse
 
indoor_keith profile image
Keith Charles

Sounds like a finite state machine to me! Something that web dev has yet to really embrace fully. This is a great example of how powerful FSMs are and why we should be using them a lot more often with our development. Great post! 👍

If you or anyone is interested in learning more about FSMs, React Podcast had a great episode on the very topic which you can find here: reactpodcast.com/episodes/5

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Agreed, I'm an avid xState fan