React Router API Reference
    Preparing search index...

    Function ServerRouter

    • The server entry point for a React Router app in Framework Mode. This component is used to generate the HTML in the response from the server. See entry.server.tsx.

      Parameters

      • props: ServerRouterProps

        Props

        • context: EntryContext

          The entry context containing the manifest, route modules, and other data needed for rendering.

        • Optionalnonce?: string

          An optional nonce for Content Security Policy (CSP) compliance, used to allow inline scripts to run safely.

        • url: string | URL

          The URL of the request being handled.

      Returns ReactElement

      A React element that represents the server-rendered application.

      framework