import { useState } from "react"; import ReactDOMServer from 'react-dom/server'; import { useLocation } from 'react-router-dom'; const MyComponent = () => { return
Hello, World!
; }; export default function Routes() { const htmlString = ReactDOMServer.renderToString(); return (
安装重构
) }