summaryrefslogtreecommitdiff
path: root/examples/framework-lit/src/components/Counter.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-lit/src/components/Counter.js')
-rw-r--r--examples/framework-lit/src/components/Counter.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/examples/framework-lit/src/components/Counter.js b/examples/framework-lit/src/components/Counter.js
deleted file mode 100644
index 35fa8dbbb..000000000
--- a/examples/framework-lit/src/components/Counter.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import { LitElement, html } from 'lit';
-
-export const tagName = 'my-counter';
-
-class Counter extends LitElement {
- static get properties() {
- return {
- count: {
- type: Number,
- },
- };
- }
-
- constructor() {
- super();
- this.count = 0;
- }
-
- increment() {
- this.count++;
- }
-
- render() {
- return html`
- <div>
- <p>Count: ${this.count}</p>
-
- <button type="button" @click=${this.increment}>Increment</button>
- </div>
- `;
- }
-}
-
-customElements.define(tagName, Counter);