Sunday, July 31, 2022

Show HN: BDC – Ergonomic, sub 1KiB virtual DOM library https://ift.tt/KEY6U1i

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. https://ift.tt/hFNfDLP July 31, 2022 at 12:47PM

No comments:

Post a Comment

Show HN: Rewriting Scratch 3.0 from scratch in Lua (browser-free native runtime) https://ift.tt/5Af6h7W

Show HN: Rewriting Scratch 3.0 from scratch in Lua (browser-free native runtime) Built a native Scratch 3.0 runtime in Lua that runs .sb3 pr...