Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 630 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 630 Bytes

Custom Elements - Hello World

Goals:

Commands

  • Server : npm run start-01
  • Tests : npm test -- -t 01

Files to modify

  1. components/stencil-hello/stencil-hello.tsx

Description

Write the following code using StencilJS:

class MyComponent extends HTMLElement {
    constructor() {
        super();
    }
    connectedCallback() {
        this.innerHTML = "<div>Hello World</div>";
    }
}

Next

Custom Elements - lifecycle Hooks & State