diff --git a/packages/vike-react/src/renderer/onRenderClient.tsx b/packages/vike-react/src/renderer/onRenderClient.tsx index b99b7087..1990c706 100644 --- a/packages/vike-react/src/renderer/onRenderClient.tsx +++ b/packages/vike-react/src/renderer/onRenderClient.tsx @@ -10,7 +10,7 @@ let root: ReactDOM.Root const onRenderClient: OnRenderClientSync = (pageContext): ReturnType => { const page = getPageElement(pageContext) - const container = document.getElementById('page-view')! + const container = document.getElementById('react-root')! if (container.innerHTML !== '' && pageContext.isHydration) { // First render (hydration) root = ReactDOM.hydrateRoot(container, page) diff --git a/packages/vike-react/src/renderer/onRenderHtml.tsx b/packages/vike-react/src/renderer/onRenderHtml.tsx index 90b3b75d..85a68ef7 100644 --- a/packages/vike-react/src/renderer/onRenderHtml.tsx +++ b/packages/vike-react/src/renderer/onRenderHtml.tsx @@ -50,7 +50,7 @@ const onRenderHtml: OnRenderHtmlAsync = async (pageContext): ReturnType -
${pageView}
+
${pageView}
`