From 8343fded9c4e28dae377b84631ef1a375d787520 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 18 Nov 2023 09:11:51 +0100 Subject: [PATCH] chore: update README examples --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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: - + - +