Change index.html for test changing id

main
Jason Zhu 2024-05-04 20:11:09 +10:00
parent 26bd21d2be
commit 5ba3725d99
2 changed files with 3 additions and 3 deletions

View File

@ -4,10 +4,10 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>TanStack Router QuickStart</title>
</head>
<body>
<div id="app"></div>
<div id="root"></div>
<script type="module" src="/src/app.tsx"></script>
</body>
</html>

View File

@ -16,7 +16,7 @@ declare module '@tanstack/react-router' {
}
// Render the app
const rootElement = document.getElementById('app')!;
const rootElement = document.getElementById('root')!;
if (!rootElement.innerHTML) {
const root = ReactDOM.createRoot(rootElement);
root.render(