From a4462653da69569f47e64eb06e3e43003a777d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 21 Nov 2020 10:28:07 +0100 Subject: [PATCH] fix: add html doctype to the output --- src/React.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}`; } }