diff --git a/packages/integrations/react/server.js b/packages/integrations/react/server.js index d7aaf7755..c4e77bb91 100644 --- a/packages/integrations/react/server.js +++ b/packages/integrations/react/server.js @@ -69,7 +69,7 @@ async function renderToStaticMarkup(Component, props, { default: children, ...sl ...props, ...slots, }; - if(children != null) { + if (children != null) { newProps.children = React.createElement(StaticHtml, { value: children }); } const vnode = React.createElement(Component, newProps);