Skip to content

Instantly share code, notes, and snippets.

@mhuebert
Created June 1, 2018 09:32
Show Gist options
  • Save mhuebert/338786ec3b72ee9bdf6764fb408d0d65 to your computer and use it in GitHub Desktop.
Save mhuebert/338786ec3b72ee9bdf6764fb408d0d65 to your computer and use it in GitHub Desktop.
S1
S1
tap -> S3
S1default
click -> S1a
tap -> S1b
S1a
go -> S2
back -> S1
S1b
go -> S3
back -> S1
S2
back -> S1a
S3
back -> S1b
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