> If you're into web apps check out XState and https://stately.ai ...
For desktop applications, Qt has been offering for ages support for state machines driving GUI states, including using SCXML to generate it's state machine code.
https://doc.qt.io/qt-6/qtstatemachine-overview.html