Created
April 16, 2020 01:00
-
-
Save bodhi/3f02236aabe97ba62da3c4ddceae7024 to your computer and use it in GitHub Desktop.
Processing
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
Processing | |
Waiting | |
fetch -> Fetching | |
Fetching | |
processed -> Done | |
error -> Error | |
not processed -> Waiting | |
Done | |
Error |
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 = 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