Fragment
Fragment: its children, without a wrapping element.
Fragment: its children, without a wrapping element.
Import#
ts
import { Fragment } from "@shadow-js/dusk";
Signature#
ts
const Fragment: (props: { readonly children?: OgNode; }) => OgNode
Examples#
ts
import { Fragment, h } from "@shadow-js/dusk/og";
Fragment({ children: h("p", null, "Hi") }); // { type: "p", props: { children: "Hi" } }