The StateMachine docs are best-used in conjunction with the demos which contains a wide selection of examples of all the main API features, as well as real world examples such as forms and components.
The demos also cover the StateHelper class which is designed to quickly wire the relationships between the StateMachine and a UI, freeing you to get on with building your app / component
To begin, familiarise yourself with some state machine concepts:
Next, see installation, setup and basic usage:
Once up and running, configure StateMachine:
Finally, explore the API and supporting classes: