H3 is also:
- tiny, under 700 sloc.
- modern, in the sense that it runs only in modern browsers (latest versions of Chrome, Firefox, Edge & similar).
- easy to learn, its API is comprised of only seven methods and two properties.
I’m sold! Where can I get it?
Here, look, it’s just one file:
Yes there is also a NPM package if you want to use it with WebPack and similar, but let me repeat: it’s just one file.
Here’s an example of an extremely minimal SPA created with H3:
import h3 from "./h3.js"; h3.init(() => h3("h1", "Hello, World!"));
This will render a
h1 tag within the document body, containing the text