Skip to content

Commit

Permalink
test: use hydrateRoot API in SSR case (#3935)
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored Nov 11, 2024
1 parent 6b1310e commit 992e1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/cases/server/ssr/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')!,
<React.StrictMode>
<App />
</React.StrictMode>,
Expand Down

0 comments on commit 992e1a2

Please sign in to comment.