summaryrefslogtreecommitdiff
path: root/examples/framework-lit/src/components/calc-add.js
blob: b0b3978bf759f51634789b9220623640083a23da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { LitElement, html } from 'lit';

export class CalcAdd extends LitElement {
	static get properties() {
		return {
			num: {
				type: Number,
			},
		};
	}

	render() {
		return html` <div>Number: ${this.num}</div> `;
	}
}

customElements.define('calc-add', CalcAdd);