Skip to content

Instantly share code, notes, and snippets.

@ijt
Created May 18, 2020 04:22
Show Gist options
  • Save ijt/62c6e95de92c4aea33fa102e4dab384a to your computer and use it in GitHub Desktop.
Save ijt/62c6e95de92c4aea33fa102e4dab384a to your computer and use it in GitHub Desktop.
<script type="module">
import {html, render} from 'https://unpkg.com/lit-html?module';
const myTemplate = (name) => html`<p>Hello ${name}</p>`;
render(myTemplate('World'), document.body);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment