import Litedom from "litedom"; Litedom({ tagName: "my-counter", shadowDOM: true, template: ` - {this.count} + `, data: { count: 0 }, dec() { this.data.count--; }, inc() { this.data.count++; } });