Reaction
type Reaction = { action: Action | null, trigger: Trigger | null }
A prototyping Reaction
describes interactivity in prototypes. It's a pair of an Action
("what happens?") and a Trigger
("how do you make it happen?").
Note: A
Reaction
cannot contain a nullTrigger
and a non-nullAction
. In order to provide anAction
, you must also provide aTrigger
.