Skip to content

Instantly share code, notes, and snippets.

@deebloo
Last active August 23, 2020 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deebloo/0984655868055a150299819654c615e7 to your computer and use it in GitHub Desktop.
Save deebloo/0984655868055a150299819654c615e7 to your computer and use it in GitHub Desktop.
import { component, JoistElement } from '@joist/component';
import { template, html } from '@joist/component/lit-html';
@component({
tagName: 'app-root',
shadowDom: 'open',
state: {
title: 'Hello World'
},
styles: [`
:host {
display: block;
}
h1 {
color: red;
}
`],
render: template(({ state }) => {
return html`
<h1>${state.title}</h1>
`
})
})
class AppElement extends JoistElement {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment