feat: update component to button

This commit is contained in:
Ayo 2023-10-07 23:55:23 +02:00
parent f6ed8ead7b
commit c7cd0cad0a

View file

@ -12,11 +12,10 @@ export default class HelloWorld extends WebComponent {
this.name = `I was clicked ${++count} times`;
this.render();
};
this.style.cursor = "pointer";
this.setAttribute("title", "Click me please");
}
get template() {
return `Hello ${this.name}! <small>I am interactive</small>`;
return `<button style="cursor:pointer">Hello ${this.name}!</button>`;
}
}