We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c5393 commit 020e0c8Copy full SHA for 020e0c8
1 file changed
examples/app-react-ssr/src/index.tsx
@@ -1,8 +1,8 @@
1
-import { createRoot } from 'react-dom/client';
+import { hydrateRoot } from 'react-dom/client';
2
import App from './App';
3
4
const root = document.getElementById('root');
5
6
if (root) {
7
- createRoot(root).render(<App />);
+ hydrateRoot(root, <App />);
8
}
0 commit comments