ELSEIF
Your brief EB
448 stories from 199 feeds 1252 clusters Refreshed 27 minutes ago next pull 17:41

WEB Signal 157

A tiny 80-line Proxy state tuple from Mador brings reactivity to any DOM

Mador is a small reactive DOM runtime that binds state to existing DOM via an 80-line Proxy state tuple, requiring no framework or build step.

WHY IT MATTERS

Mador gives engineers a way to add reactive state to existing DOM without pulling in a framework, which suits pages that only need a little reactivity. Its small size and lack of build step make it easy to adopt, but it deliberately omits components, templates, and virtual DOM, so it is not a full framework replacement.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

Mador is a native ES module distributed via npm or CDN with no build step.

02

Bindings use a read function to select state and an update function to modify elements, rerunning only when dependencies change.

03

Writes are batched, and bindings are automatically removed when their target DOM elements disappear.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
github.com via Hacker News Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple Open ↗