Skip to content

Commit

Permalink
chore: update ssr example
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Nov 11, 2024
1 parent 979e428 commit 82dc445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rsbuild/ssr-express/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
4 changes: 2 additions & 2 deletions rsbuild/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 82dc445

Please sign in to comment.