Show HN: BDC – Ergonomic, sub 1KiB virtual DOM library

BDC is a simple library for updating the DOM to match a javascript description. Does not require JSX or a compilation step.

    clobber(
      document.body,
      h("marquee", [
        h("span", {"style": "font-weight: bold"}, "Hello"), ", ",
        h("blink", "world"), "!",
      ]),
    );
Very fast to first render, moderately slow on subsequent updates.

Prompted by the post on millionjs, which compiles user code to hit the same outrageously small size target.

23 points bwhmather 4 years ago 4 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton