diff --git a/README.md b/README.md index 398da45..fb95470 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ import WebComponent from "https://unpkg.com/web-component-base/index.js"; ``` ## Installation via npm -Usable for projects using typescript, or with bundlers, or using import maps. +Usable for projects with bundlers or using import maps. ```bash npm i web-component-base @@ -48,11 +48,11 @@ In your component class: import WebComponent from "https://unpkg.com/web-component-base/index.js"; class HelloWorld extends WebComponent { - static properties = ["data-name", "emotion"]; + static properties = ["my-name", "emotion"]; get template() { return ` -

Hello ${this.props.dataName}${this.props.emotion === "sad" ? ". 😭" : "! 🙌"}

`; +

Hello ${this.props.myName}${this.props.emotion === "sad" ? ". 😭" : "! 🙌"}

`; } } @@ -67,7 +67,7 @@ In your HTML page: - + - +