React Router API Reference
    Preparing search index...

    Function unstable_HistoryRouter

    • A declarative <Router> that accepts a pre-instantiated history object. It's important to note that using your own history object is highly discouraged and may add two versions of the history library to your bundles unless you use the same version of the history library that React Router uses internally.

      Parameters

      • props: HistoryRouterProps

        Props

        • Optionalbasename?: string

          Application basename

        • Optionalchildren?: ReactNode

          <Route> components describing your route configuration

        • history: History

          A History implementation for use by the router

        • Optionalunstable_useTransitions?: boolean

          Control whether router state updates are internally wrapped in React.startTransition.

          • When left undefined, all router state updates are wrapped in React.startTransition
          • When set to true, Link and Form navigations will be wrapped in React.startTransition and all router state updates are wrapped in React.startTransition
          • When set to false, the router will not leverage React.startTransition on any navigations or state changes.

          For more information, please see the docs.

      Returns Element

      A declarative <Router> using the provided history implementation for client-side routing.

      unstable_HistoryRouter

      declarative

    Index

    Properties

    Properties

    displayName: string