From 5e50df8613595bb9996385954b045c12ca1df750 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 13 Jan 2024 23:15:03 +0100 Subject: [PATCH] feat(site): update why section --- site/src/pages/index.html | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/site/src/pages/index.html b/site/src/pages/index.html index 4e769fb..e74ac21 100644 --- a/site/src/pages/index.html +++ b/site/src/pages/index.html @@ -89,15 +89,27 @@

Why use this base class?

- Writing Web Components directly from - HTMLElement can seem confusing and - hard to maintain, especially when coming from popular JS frameworks - and other projects that recommend complex setups. + Often times, when simple websites need a quick + custom element, the best way is still to create one extending from + HTMLElement. However, it can quickly + reach a point where writing the code from scratch can seem confusing + and hard to maintain especially when compared to other projects with + more advanced setups.

- This project aims to address this with virtually zero tooling required - and thin abstractions from vanilla custom element APIs – giving you - only the bare minimum code to be productive. + Also, when coming from frameworks with an easy declarative coding + experience (using templates), the default imperative way (e.g., + declaring elements, manually attaching event handlers, and other DOM + manipulations) is a frequent pain point we see. +

+

+ This project aims to address these with virtually zero tooling + required and thin abstractions from vanilla custom element APIs – + giving you only the bare minimum code to be productive.

It works on current-day browsers without needing compilers,