Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ochairo authored Mar 29, 2024
1 parent 55897dd commit c44940f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,17 @@ You have multiple options for development.
### Component

```ts
class SampleComponent extends BaseComponent {
class TitleComponent extends BaseComponent {
constructor() {
super();
this._shadowRoot.innerHTML = `<h1>Sample</h1>`;
this._shadowRoot.innerHTML = `<h1>Title: Sample</h1>`;
}

onInit() { ... }

onDestroy() { ... }
}
customElements.define("sample-component", SampleComponent);
export default SampleComponent;
customElements.define("title-component", TitleComponent);
export default TitleComponent;
```

0 comments on commit c44940f

Please sign in to comment.