Skip to content

Commit

Permalink
refactor: renderToStaticMarkup으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
eonseok-jeon committed Oct 11, 2024
1 parent 0b574bd commit 67951c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/UnsupportedPage/pre-render.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import ReactDOM from 'react-dom/server';
import { renderToStaticMarkup } from 'react-dom/server';
import fs from 'node:fs';
import path from 'node:path';
import UnsupportedPage from './index';

const str = ReactDOM.renderToString(<UnsupportedPage />);
const str = renderToStaticMarkup(<UnsupportedPage />);

const html = `
<html lang="ko">
Expand Down

0 comments on commit 67951c9

Please sign in to comment.