uhtml
Version:
A micro HTML/SVG render
14 lines (11 loc) • 380 B
JavaScript
;
const render = (require('./shared.js'));
/** @typedef {import("../rabbit.js").Hole} Hole */
/**
* Render with smart updates within a generic container.
* @template T
* @param {T} where the DOM node where to render content
* @param {(() => Hole) | Hole} what the hole to render
* @returns
*/
module.exports = (where, what) => render(where, what, true);