diff --git a/src/components/hello-world.js b/src/components/hello-world.js index 54ac7f0..23b7556 100644 --- a/src/components/hello-world.js +++ b/src/components/hello-world.js @@ -9,8 +9,7 @@ export default class HelloWorld extends WebComponent { let count = 0; this.onclick = () => { console.log("Clicked!"); - this.name = `I was clicked ${++count} times`; - this.render(); + this.setAttribute("name", `I was clicked ${++count} times`); }; this.setAttribute("title", "Click me please"); }