@tempots/dom

Renderable type

Represents a function that can be rendered in the DOM.

Signature:

export type Renderable<CTX extends DOMContext = DOMContext> = (ctx: CTX) => Clear;

References: DOMContext, Clear