An xstate + react app to demostrate the use of finite state machines and statecharts on Frontend to model the behaviour of de UI.
You can see and play around with the used machines here:
https://xstate.js.org/viz/?gist=d0a31f14dbd1cc56c8910ff486c59260
https://xstate.js.org/viz/?gist=ae74cc6885e69758e8a0064df7df99bc