Last active
August 25, 2020 20:52
-
-
Save deebloo/8ac468c2fe32c7a9d66eaf754bc1a8c0 to your computer and use it in GitHub Desktop.
This file contains 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 { 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