Main Component

    0

    1

    Jose Romero

    Remix TypeScript public recipes

    This recipe exports meta tags, title and other essential information for a main component in remix

    Library: remix

    Shortcut: remix.component.main.create

    import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from "remix";
    import type { MetaFunction } from "remix";
    
    export const meta: MetaFunction = () => {
      return { title: "Page Title" };
    };
    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 />
          </body>
        </html>
      );
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.