UNPKG

@tempots/dom

Version:

Fully-typed frontend framework alternative to React and Angular

14 lines (13 loc) 628 B
import { TNode, Renderable } from '../types/domain'; /** * Creates a fragment renderable that represents a collection of child renderables. * * The Fragment itself does not render any DOM elements. Instead, it renders the child renderables in the given DOM context. * * It can be used any time a single Renderable/TNode is expected, but multiple renderables are needed. * * @param children - The child renderables to include in the fragment. * @returns A renderable function that renders the child renderables in the given DOM context. * @public */ export declare const Fragment: (...children: TNode[]) => Renderable;