This mini-framework lets you create DOM objects in a very convenient way, and has a simple selector parser in TypeScript types to ensure type hints.
const makeUser = (user: User) => _("div.user",
_("img.avatar", {
// This object has properties from HTMLImageElement, as inferred from the selector
src: user.avatarURL,