React Router API Reference
    Preparing search index...

    Function BrowserRouter

    • A declarative <Router> using the browser History API for client-side routing.

      Parameters

      • props: BrowserRouterProps

        Props

        • Optionalbasename?: string

          Application basename

        • Optionalchildren?: ReactNode

          <Route> components describing your route configuration

        • 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.

        • Optionalwindow?: Window

          Window object override. Defaults to the global window instance

      Returns Element

      A declarative <Router> using the browser History API for client-side routing.

      declarative