Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created Jun 7, 2017
Embed
What would you like to do?
// 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