From 992e1a28089c01e05e83fa069b4c6a782569095f Mon Sep 17 00:00:00 2001 From: 9aoy Date: Mon, 11 Nov 2024 12:21:16 +0800 Subject: [PATCH] test: use hydrateRoot API in SSR case (#3935) --- e2e/cases/server/ssr/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/cases/server/ssr/src/index.tsx b/e2e/cases/server/ssr/src/index.tsx index 2b875af736..c8b1822469 100644 --- a/e2e/cases/server/ssr/src/index.tsx +++ b/e2e/cases/server/ssr/src/index.tsx @@ -2,8 +2,8 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import App from './App'; -const root = ReactDOM.createRoot(document.getElementById('root')!); -root.render( +ReactDOM.hydrateRoot( + document.getElementById('root')!, ,