Skip to content

Instantly share code, notes, and snippets.

@eddiezane
Created September 11, 2017 22:07
Show Gist options
  • Save eddiezane/a2e7d94dd5a335eb01bfde470f2c75b5 to your computer and use it in GitHub Desktop.
Save eddiezane/a2e7d94dd5a335eb01bfde470f2c75b5 to your computer and use it in GitHub Desktop.
export default () => {
const h1 = document.createElement('h1')
h1.innerText = 'Hello, World!'
document.body.appendChild(h1)
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script src="/index.js" type="module"></script>
</body>
</html>
import hello from '/hello.js'
hello()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment