Web Components

20 Jun 2024

Position of Web Components

Problem # Web Components are widely misused. Guides and frameworks invest a lot of time and resources into upgrading web components into something capable of handling state. However, state should not be handled by web components. It doesn’t mean that they can’t hold states; actually, handling states here refers to 2 facts: Be used to build business-level logics. Reactivity is considered a feature. And this is what’s happening with Lit, one of the most powerful and popular web component building framework.