Created
December 15, 2021 05:55
-
-
Save tjmonsi/425b6813aa14a8277cfc23ea5aad01cf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import { LitElement, html } from 'lit'; | |
export class Page extends LitElement { | |
createRenderRoot () { | |
// this adds it to the main HTML DOM instead of the shadowDOM | |
return this; | |
} | |
render () { | |
return html`hello home page` | |
} | |
} | |
window.customElements.define('home-page', Page); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment