Skip to content

Instantly share code, notes, and snippets.

@mrDarcyMurphy
Created September 24, 2018 23:37
Show Gist options
  • Save mrDarcyMurphy/f85445ec7c6ff172dbc78a94b5d4fbcf to your computer and use it in GitHub Desktop.
Save mrDarcyMurphy/f85445ec7c6ff172dbc78a94b5d4fbcf to your computer and use it in GitHub Desktop.
Root?
Root?
loaded -> SignedUp?
SignedUp?
signed up? -> Confirmed
not signed up? -> Sign Up
Sign Up
submit -> Confirmed
Confirmed
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