React Router API Reference
    Preparing search index...

    Function StaticRouter

    • A <Router> that may not navigate to any other Location. This is useful on the server where there is no stateful UI.

      Parameters

      • props: StaticRouterProps

        Props

        • Optionalbasename?: string

          The base URL for the static router (default: /)

        • Optionalchildren?: ReactNode

          The child elements to render inside the static router

        • location: string | Partial<Location<any>>

          The Location to render the static router at (default: /)

      Returns Element

      A React element that renders the static <Router>

      declarative