Created
June 7, 2017 01:31
-
-
Save goofmint/39b5f0200f748e4c96ce9c3d5a9a292d to your computer and use it in GitHub Desktop.
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
// 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