BDC is a simple library for updating the DOM to match a javascript description.
Does not require JSX or a compilation step.<p><pre><code> clobber(
document.body,
h("marquee", [
h("span", {"style": "font-weight: bold"}, "Hello"), ", ",
h("blink", "world"), "!",
]),
);
</code></pre>
Very fast to first render, moderately slow on subsequent updates.<p>Prompted by the post on millionjs, which compiles user code to hit the same outrageously small size target.
I always wonder why github doesn't do something like this. Right now they return html via ajax and innerHTML it into the DOM. Given that innerHTML is notoriously slow, returning something like this should be way faster.<p>Your lib seems to lack svg & @types support though. And I don't know why you have "virtual DOM" in the title, given that it has nothing to do with it :)