UNPKG

jsx-email

Version:

Render JSX email components to HTML email

11 lines 482 B
import { type ReactNode } from 'react'; /** * Convert a JSX element to a string. * This is a slightly modified version of Hyperons's * [`renderToString`](https://github.com/i-like-robots/hyperons/blob/main/src/render-to-string.js) function. * * @param element The JSX element to convert to a string * @returns The string representation of the JSX element */ export declare function jsxToString(element: ReactNode): Promise<string>; //# sourceMappingURL=jsx-to-string.d.ts.map