Skip to content

Instantly share code, notes, and snippets.

@joeriks
Created May 20, 2018 21:51
Show Gist options
  • Save joeriks/39da0f5831a3479504914db4396805b0 to your computer and use it in GitHub Desktop.
Save joeriks/39da0f5831a3479504914db4396805b0 to your computer and use it in GitHub Desktop.
hyperhtml and babel sample (for IE)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://unpkg.com/hyperhtml@2.10.1/min.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
</head>
<body>
<div id="app"></div>
<script type="text/babel">
var data = {message: 'Hello hyperHTML!'};
hyperHTML.bind(document.querySelector('#app'))`
${data.message}
`;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment