Skip to content

Instantly share code, notes, and snippets.

@deebloo
Last active August 25, 2020 20:52
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/8ac468c2fe32c7a9d66eaf754bc1a8c0 to your computer and use it in GitHub Desktop.
Save deebloo/8ac468c2fe32c7a9d66eaf754bc1a8c0 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: 'my-element',
state: {
title: 'Hello World'
},
render: template(({ state }) => {
return html`<h1>${state.title}</h1>`
})
})
class MyElement extends JoistElement {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment