Social Media Photo by Andrii Ganzevych on Unsplash
uhtml (micro µ html) is one of the smallest, fastest, memory consumption friendly, yet zero-tools based, library to safely help creating or manipulating DOM content.
uhtml
as default{ Hole, render, html, svg, attr }
with smart auto-keyed nodes - read keyed or not ? paragraph to know moreuhtml/keyed
with extras{ Hole, render, html, svg, htmlFor, svgFor, attr }
, providing keyed utilities - read keyed or not ? paragraph to know moreuhtml/node
with same default exports but it's for one-off nodes creation only so that no cache or updates are available and it's just an easy way to hook uhtml into your existing project for DOM creation (not manipulation!)uhtml/init
which returns adocument => uhtml/keyed
utility that can be bootstrapped with LinkeDOM, JSDOM, or Workers support
uhtml/init example
import init from 'uhtml/init';
import mockedDocument from '...';
const {
Hole,
render,
html, svg,
htmlFor, svgFor,
attr
} = init(mockedDocument);