Skip to content

Instantly share code, notes, and snippets.

@bodhi
Created April 16, 2020 01:00
Show Gist options
  • Save bodhi/3f02236aabe97ba62da3c4ddceae7024 to your computer and use it in GitHub Desktop.
Save bodhi/3f02236aabe97ba62da3c4ddceae7024 to your computer and use it in GitHub Desktop.
Processing
Processing
Waiting
fetch -> Fetching
Fetching
processed -> Done
error -> Error
not processed -> Waiting
Done
Error
function render(model){
let current_state = model.root.children.find(({ is_active }) => is_active);
console.log(model);
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