(no title)
sneas | 2 years ago
The scope and limitations I had:
- Should be framework-agnostic
- Should require the minimum effort in installing
- Should not conflict with anything on the page
So, Web Component was the perfect candidate for the lib.
The framework-less approach felt overwhelming, and lit-html smelled like Polymer. So, initially, I picked up Stencil. It is still fantastic for creating component libraries, but it happened to be overkill for a tiny component. So in a few years, I rewrote my WC without Stencil, and now it feels just right.
I developed several more Web Components professionally in the past few years. I saw them as a perfect fit for the problems I had to solve. The scopes of problems were similar:
- Should be framework-agnostic
- Should require the minimum effort in installing
- Should not conflict with anything on the page
No comments yet.