Skip to content
Version: xstate@5.0.0

StateNode.on property​

The mapping of events to transitions.

Signature:

get on(): TransitionDefinitionMap<TContext, TEvent>;