root.tsx 678 B

123456789101112131415161718192021222324252627282930313233
  1. import type { LinksFunction, MetaFunction } from "@remix-run/node"
  2. import {
  3. Links,
  4. LiveReload,
  5. Meta,
  6. Outlet,
  7. Scripts,
  8. ScrollRestoration,
  9. } from "@remix-run/react"
  10. import styles from "./styles.css"
  11. export const meta: MetaFunction = () => [{ title: "New Remix App" }]
  12. export const links: LinksFunction = () => [{ rel: "stylesheet", href: styles }]
  13. export default function App() {
  14. return (
  15. <html lang="en">
  16. <head>
  17. <meta charSet="utf8" />
  18. <meta name="viewport" content="width=device-width,initial-scale=1" />
  19. <Meta />
  20. <Links />
  21. </head>
  22. <body>
  23. <Outlet />
  24. <ScrollRestoration />
  25. <Scripts />
  26. <LiveReload />
  27. </body>
  28. </html>
  29. )
  30. }