feat(docs): reduce "just"
This commit is contained in:
parent
73a4c18f45
commit
e80b157d9d
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ title: Using Just Some Parts
|
||||||
slug: 'just-parts'
|
slug: 'just-parts'
|
||||||
---
|
---
|
||||||
|
|
||||||
You don't have to extend the whole base class just to use some features. All internals are exposed and usable separately so you can practically build the behavior on your own classes.
|
You don't have to extend the whole base class to use some features. All internals are exposed and usable separately so you can practically build the behavior on your own classes.
|
||||||
|
|
||||||
Here's an example of using the `html` tag template on a class that extends from vanilla `HTMLElement`... also [View on CodePen ↗](https://codepen.io/ayoayco-the-styleful/pen/bGzJQJg?editors=1010).
|
Here's an example of using the `html` tag template on a class that extends from vanilla `HTMLElement`... also [View on CodePen ↗](https://codepen.io/ayoayco-the-styleful/pen/bGzJQJg?editors=1010).
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,4 @@ slug: library-size
|
||||||
|
|
||||||
All the functions and the base class in the library are minimalist by design and only contains what is needed for their purpose.
|
All the functions and the base class in the library are minimalist by design and only contains what is needed for their purpose.
|
||||||
|
|
||||||
The main export (with `WebComponent` + `html`) is **1.7 kB** (min + gzip) according to [bundlephobia.com](https://bundlephobia.com/package/web-component-base@latest), and the `WebComponent` base class is just **1.08 kB** (min + brotli) according to [size-limit](http://github.com/ai/size-limit).
|
The main export (with `WebComponent` + `html`) is **1.7 kB** (min + gzip) according to [bundlephobia.com](https://bundlephobia.com/package/web-component-base@latest), and the `WebComponent` base class is **1.08 kB** (min + brotli) according to [size-limit](http://github.com/ai/size-limit).
|
||||||
|
|
Loading…
Reference in a new issue