React Router API Reference
    Preparing search index...

    Function Links

    • Renders all the <link> tags created by the route module's links export. You should render it inside the <head> of your document.

      Parameters

      • props: LinksProps

        Props

        Props for the Links component.

        • OptionalcrossOrigin?: "anonymous" | "use-credentials"

          A crossOrigin attribute to render on the <link> element

        • Optionalnonce?: string

          A nonce attribute to render on the <link> element

      Returns Element

      A collection of React elements for <link> tags

      import { Links } from "react-router";

      export default function Root() {
      return (
      <html>
      <head>
      <Links />
      </head>
      <body></body>
      </html>
      );
      }

      @public

      framework