Simple States And Composite States
XState allows you to build hierarchical state machines. A hierarchical state machine is one where there are substates nested under states.
States with nothing nested under them are simple states. States that have substates are composite states.
The
inactive
state is a simple state. There is nothing nested under it.The
active
state is a composite state. There are two substates (increment
anddecrement
) nested under it.The
increment
anddecrement
states are both simple states. Nothing is nested under them.
Last updated