Reciprocate, a Sweet Solution for Making HTML Web Components Reactive
thathtml.blog·1w·
Discuss: Hacker News

September 8, 2025 Permalink

Have you ever been chipping away on a vanilla web component when you began to wonder “hey waitaminute…how do I make it so when I set this JavaScript property, the equivalent HTML attribute is updated? And if I set this attribute, the equivalent property is updated? Or when either is updated, my component will re-render?! Where are all the APIs for this stuff??”

Alas, there are none. 😥

Why the native web platform doesn’t provide primitives for custom elements to act like, well, any other native element is a question for another time…because you need not worry about this strange oversight any longer! 🤓

Introducing Reciprocate.…

Similar Posts

Loading similar posts...