Comment

Comment by mattigames

If I was making this kind of mini framework instead of this

    a({href: "https://vanjs.org/"}, "VanJS")
I would have gone with this shorter way

   a("VanJS").href("https://vanjs.org/")
And make it chainable and allow class names as second argument as in

    a("About us", ".big.red").href("/about.html").target("_blank")
parent mattigames 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton