echoes/frontend/app/routes.tsx

15 lines
348 B
TypeScript
Raw Normal View History

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