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 4f9cbd3 commit 7e1802c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,10 @@ How to write components in vanillatte.
- Element: `<sample-component></sample-component>`

```ts
import BaseComponent from "./bar/baz/base.component";
import style from "./sample.component.css";
import template from "./sample.component.html";

class SampleComponent extends BaseComponent {
constructor() {
super();
this._shadowRoot.innerHTML = `<style>${style}</style>${template}`;
this._shadowRoot.innerHTML = `<h1>Sample</h1>`;
}

onInit() { ... }
Expand Down

0 comments on commit 7e1802c

Please sign in to comment.