Intro to State Machines in JavaScript

January 23, 2020

I listen to a podcast called Syntax FM sometimes. It's mostly about web development. One of the hosts mentioned something about state machines and it sounded interesting so I looked into it. I didn't think there was much information about actually using them in software at the time, so I made a small tutorial series on the topic.

I tried to make it so it's applicable to State Machines in general, but I used a JavaScript library called XState to implement the state machine in a React web application. The good thing about XState though is that it's framework and library agnostic, so you can use it in any JavaScript app or website.

If you're interested in learning State Machines, I think you'll find some value out of it. So please enjoy. You can find the original code I used online here.