jsxs
The JSX runtime entry for several children (jsxs(type, props)).
The JSX runtime entry for several children (jsxs(type, props)).
Import#
ts
import { jsxs } from "@shadow-js/dusk";
Signature#
ts
function jsxs(
type: string | OgComponent,
props: Readonly<Record<string, unknown>>,
): OgElement
Parameters#
| Name | Description |
|---|---|
type |
The tag or component. |
props |
The props, with an array children. |
Returns#
The element.
Examples#
ts
import { jsxs } from "@shadow-js/dusk/og";
jsxs("p", { children: ["a", "b"] }); // { type: "p", props: { children: ["a", "b"] } }