@tempots/dom
Version:
Fully-typed frontend framework alternative to React and Angular
15 lines (14 loc) • 705 B
TypeScript
import { TNode, Renderable } from '../types/domain';
import { DOMContext } from '../dom/dom-context';
/**
* 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: <T extends DOMContext>(...children: TNode<T>[]) => Renderable<T>;