Merge branch 'main' of github.com:ayoayco/web-component-base

This commit is contained in:
Ayo 2023-12-12 08:36:44 +01:00
commit a35f5a086e
4 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,8 @@
🤷‍♂️ zero-dependency, 🤏 tiny JS base class for creating reactive custom elements easily ✨ 🤷‍♂️ zero-dependency, 🤏 tiny JS base class for creating reactive custom elements easily ✨
![counter example code snippet](https://raw.githubusercontent.com/ayoayco/web-component-base/main/assets/IMG_0682.png)
When you extend the `WebComponent` class for your component, you only have to define the `template` and `properties`. Any change in any property value will automatically cause just the component UI to render. When you extend the `WebComponent` class for your component, you only have to define the `template` and `properties`. Any change in any property value will automatically cause just the component UI to render.
The result is a reactive UI on property changes. [View on CodePen ↗](https://codepen.io/ayoayco-the-styleful/pen/ZEwoNOz?editors=1010) The result is a reactive UI on property changes. [View on CodePen ↗](https://codepen.io/ayoayco-the-styleful/pen/ZEwoNOz?editors=1010)

BIN
assets/IMG_0682.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
assets/IMG_0683.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
assets/IMG_0684.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB