XState, a Finite State Machine Created with JavaScript
I had occasionally used FSM (Finite State Machine) when implementing UIs. I applied the basic concepts using enum and conditional statements. In situations with many defined states and different possible actions depending on the state, I would likely apply FSM without hesitation.






