import { jsx } from "https://deno.land/x/docxml@5.5.1/src/utilities/jsx.ts";
The JSX pragma with which you can write <Paragraph>
instead of new Paragraph({})
.
Also exposed as the jsx
prop on the (static) class as well as instance of this library's top-
level API -- see also Api.
Type Parameters
C extends Component
Parameters
component: ComponentComponentFunction<C> | ComponentDefinition<C>
props: ComponentProps<C>
...children: Array<ComponentChild<C> | Array<ComponentChild<C>>>
Returns
Promise<Array<C | ComponentChild<C> | ReturnType<ComponentComponentFunction<C>>>>