Reaction
type Reaction = { action?: Action, actions?: Action[], trigger: Trigger | null }
A prototyping Reaction describes interactivity in prototypes. It contains a list of Action objects ("what happens?") and a Trigger ("how do you make it happen?").
Note: The
actionfield is now deprecated and replaced by theactionsfield in order to allow for multipleActionson aReaction.
info
When setting reactions, each Reaction must contain both a Trigger and a non-empty list of Action objects.