hast-util-to-jsx-runtime
Version:
hast utility to transform to preact, react, solid, svelte, vue, etc
15 lines • 465 B
TypeScript
/**
* Transform a hast tree to preact, react, solid, svelte, vue, etc.,
* with an automatic JSX runtime.
*
* @param {Nodes} tree
* Tree to transform.
* @param {Options} options
* Configuration (required).
* @returns {JSX.Element}
* JSX element.
*/
export function toJsxRuntime(tree: Nodes, options: Options): JSX.Element;
import type { Nodes } from 'hast';
import type { Options } from 'hast-util-to-jsx-runtime';
//# sourceMappingURL=index.d.ts.map