xstate is Javascript library for creating finite state machines and statecharts.
I am working on investigation of one front-end application of medium complexity. At this moment it is written in pure …