import { LitElement, html } from 'lit'; export class MyCounter extends LitElement { static get properties() { return { count: { type: Number, }, }; } constructor() { super(); this.count = 0; } increment() { this.count++; } render() { return html`

Count: ${this.count}

`; } } customElements.define('my-counter', MyCounter);