added first lit component for example
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import {LitElement, html} from 'lit';
|
||||
|
||||
export class Player extends LitElement {
|
||||
static properties = {
|
||||
version: {},
|
||||
};
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.version = 'STARTING';
|
||||
}
|
||||
|
||||
render() {
|
||||
return html`
|
||||
<p>Welcome to the Lit tutorial!</p>
|
||||
<p>This is the ${this.version} code.</p>
|
||||
`;
|
||||
}
|
||||
}
|
||||
customElements.define('player-controls', Player);
|
||||
|
||||
Reference in New Issue
Block a user