UNPKG

316 BJavaScriptView Raw
1import { getMarkupFromTree } from "./getDataFromTree.js";
2import { renderToString } from 'react-dom/server';
3export function renderToStringWithData(component) {
4 return getMarkupFromTree({
5 tree: component,
6 renderFunction: renderToString
7 });
8}
9//# sourceMappingURL=renderToStringWithData.js.map
\No newline at end of file