A zero-dependency, buildless, terse, and type-safe way to write HTML in JavaScript.
A sensible way to write HTML in JavaScript.
* not affiliated with the Hawaii Department of Transportation
import { h } from "hdot";
h.div(
h.h1`hdot`,
h.p`Type-safe HTML templates`,
h.a.href("https://hdot.dev")`Read the docs.`
);
<div>
<h1>hdot</h1>
<p>Type-safe HTML templates</p>
<a href="https://hdot.dev">Read the docs.</a>
</div>