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
action
field is now deprecated and replaced by theactions
field in order to allow for multipleActions
on aReaction
.
info
When setting reactions, each Reaction
must contain both a Trigger
and a non-empty list of Action
objects.