feat(docs): fix links

This commit is contained in:
Ayo Ayco 2025-03-27 13:27:49 +01:00
parent d9bcb019bc
commit 73a4c18f45

View file

@ -22,7 +22,7 @@ For building advanced interactions, there is an in-progress work on smart diffin
In the mean time, if you have some complex needs, we recommend using the `WebComponent` base class with a more mature rendering approach like `lit-html`... and here's a demo for that: [View on CodePen ↗](https://codepen.io/ayoayco-the-styleful/pen/ZEwNJBR?editors=1010).
...or you can even [use just parts](#just-the-templating) of it for your own base class.
...or you can even [use just parts](/just-parts) of it for your own base class.
## Installation
@ -32,7 +32,7 @@ The library is distributed as complete ECMAScript Modules (ESM) and published on
It is possible to import directly using a CDN like [esm.sh](https://esm.sh/web-component-base) or [unpkg](https://unpkg.com/web-component-base) in your vanilla JS component or HTML files. In all examples in this document, we use `unpkg` but you can find on CodePen examples that `esm.sh` also works well.
Additionally, we use `@latest` in the rest of our [usage examples](#usage) here for simplicity, but take note that this incurs additional resolution steps for CDNs to find the actual latest published version. You may replace the `@latest` in the URL with specific versions as shown in our CodePen examples, and this will typically be better for performance.
Additionally, we use `@latest` in the rest of our [usage](/usage) and [examples](/examples) here for simplicity, but take note that this incurs additional resolution steps for CDNs to find the actual latest published version. You may replace the `@latest` in the URL with specific versions as shown in our CodePen examples, and this will typically be better for performance.
```js
import { WebComponent } from 'https://unpkg.com/web-component-base@latest/index.js'