Back to React Router

Meta

docs/api/components/Meta.md

7.6.21.0 KB
Original Source

Meta

<!-- ⚠️ ⚠️ IMPORTANT ⚠️ ⚠️ Thank you for helping improve our documentation! This file is auto-generated from the JSDoc comments in the source code, so please edit the JSDoc comments in the file below and this file will be re-generated once those changes are merged. https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/dom/ssr/components.tsx -->

[MODES: framework]

Summary

Reference Documentation ↗

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

tsx
import { Meta } from "react-router";

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

Signature

tsx
function Meta(): React.JSX.Element