From 3066efa6ff0a25c7952cf4107217890cfcf7e681 Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 30 Nov 2023 21:30:37 +0100 Subject: [PATCH] chore: update readme -- don't use default export --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b15f967..410b311 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ The result is a reactive UI on property changes. [View on CodePen ↗](https://c Import using [unpkg](https://unpkg.com/web-component-base) in your vanilla JS component. We will use this in the rest of our [usage examples](#usage). ```js -import WebComponent from "https://unpkg.com/web-component-base@latest/WebComponent.min.js"; +import { WebComponent } from "https://unpkg.com/web-component-base@latest/WebComponent.min.js"; ``` ## Installation via npm @@ -56,7 +56,7 @@ In your component class: ```js // HelloWorld.mjs -import WebComponent from "https://unpkg.com/web-component-base@latest/WebComponent.min.js"; +import { WebComponent } from "https://unpkg.com/web-component-base@latest/WebComponent.min.js"; class HelloWorld extends WebComponent { static properties = ["my-name", "emotion"]; @@ -153,7 +153,7 @@ Here is an example of using a custom element in a single .html file. WC Base Test