Created
May 24, 2021 21:03
-
-
Save j-funk/ba6beaed0b6447fc3fc035de7cf1ed63 to your computer and use it in GitHub Desktop.
State Explosion Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
State Explosion Example | |
Audio Off and Video Off | |
audio on -> Audio On and Video Off | |
video on -> Audio Off and Video On | |
Audio On and Video Off | |
audio off -> Audio Off and Video Off | |
video on -> Audio On and Video On | |
Audio Off and Video On | |
audio on -> Audio On and Video On | |
video off -> Audio Off and Video Off | |
Audio On and Video On | |
audio off -> Audio Off and Video On | |
video off -> Audio On and Video Off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment