Skip to content

Instantly share code, notes, and snippets.

@wavebeem
Created October 11, 2015 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavebeem/c16ed6446dba106dbecc to your computer and use it in GitHub Desktop.
Save wavebeem/c16ed6446dba106dbecc to your computer and use it in GitHub Desktop.
def start() =
let body = document.body
let root = React.createElement(GameView)
let container = document.getElementById("react-container")
let thing = React.render(root, container)
in do
set(app, "root", thing);
body.addEventListener("click", focusClickhole);
tick();
end
def start() =
let body = document.body
let root = React.createElement(GameView)
let container = document.getElementById("react-container")
let thing = React.render(root, container)
let _ = set(app, "root", thing)
let _ = body.addEventListener("click", focusClickhole)
in tick()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment