How to manage reactive state using Custom Elements (Web Components)
November 20, 2024
To make things truly reactive in our custom elements (web components) we need some reactive state primitive. In frameworks, we usually use a hook or some other kind of “handle” to some state somewhere out there in a place we can’t really see.
Source: I‘m Nathan Herald → How to manage reactive state using Custom Elements (Web Components)
Signals are a pattern of reactivity that are in or coming to many frameworks and potentially JavaScript as well.
Nathan Herald describes how this approach works with Web Components.