diff --git a/src/React.tsx b/src/React.tsx index 9788d95..cba9b30 100644 --- a/src/React.tsx +++ b/src/React.tsx @@ -60,12 +60,13 @@ class ReactInstance { Component: ComponentType, props?: ComponentPropsWithoutRef>, ): string { - return renderToStaticMarkup( + const html = renderToStaticMarkup( // @ts-ignore {/* @ts-ignore */} , ); + return `\n${html}`; } }