diff --git a/README.md b/README.md index c331081..6f839cf 100644 --- a/README.md +++ b/README.md @@ -48,14 +48,11 @@ In your component class: import WebComponent from "https://unpkg.com/web-component-base/index.js"; class HelloWorld extends WebComponent { - dataName = "World"; - emotion = "excited"; - static properties = ["data-name", "emotion"]; get template() { return ` -

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

`; +

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

`; } } @@ -127,20 +124,15 @@ Here is an example of using a custom element in a single .html file: WC Base Test