34 lines
717 B
TypeScript
34 lines
717 B
TypeScript
|
import { cssBundleHref } from "@remix-run/css-bundle";
|
||
|
import type { LinksFunction } from "@remix-run/node";
|
||
|
import {
|
||
|
Links,
|
||
|
LiveReload,
|
||
|
Meta,
|
||
|
Outlet,
|
||
|
Scripts,
|
||
|
ScrollRestoration,
|
||
|
} from "@remix-run/react";
|
||
|
|
||
|
export const links: LinksFunction = () => [
|
||
|
...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
|
||
|
];
|
||
|
|
||
|
export default function App() {
|
||
|
return (
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charSet="utf-8" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
<Meta />
|
||
|
<Links />
|
||
|
</head>
|
||
|
<body>
|
||
|
<Outlet />
|
||
|
<ScrollRestoration />
|
||
|
<Scripts />
|
||
|
<LiveReload />
|
||
|
</body>
|
||
|
</html>
|
||
|
);
|
||
|
}
|