import { Outlet } from "remix"; import type { MetaFunction, LinksFunction } from "remix"; import stylesUrl from "~/styles/demos/about.css"; export let meta: MetaFunction = () => { return { title: "About Remix" }; }; export let links: LinksFunction = () => { return [{ rel: "stylesheet", href: stylesUrl }]; }; export default function Index() { return (
Ok, so this page isn't really about us, but we did want to show you a few more things Remix can do.
Did you notice that things look a little different on this page? The
CSS that we import in the route file and include in its{" "}
links export is only included on this route and its
children.
Wait a sec...its children? To understand what we mean by this,{" "} read all about nested routes in the docs .