Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created June 7, 2017 01:31
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 goofmint/39b5f0200f748e4c96ce9c3d5a9a292d to your computer and use it in GitHub Desktop.
Save goofmint/39b5f0200f748e4c96ce9c3d5a9a292d to your computer and use it in GitHub Desktop.
// this is hyperHTML
function tick(render) {
render`
<div>
<h1>Hello, world!</h1>
<h2>It is ${new Date().toLocaleTimeString()}.</h2>
</div>
`;
}
setInterval(tick, 1000,
hyperHTML.bind(document.getElementById('root'))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment