Type Declaration
Props
Application basename for when you can’t deploy to the root of the domain, but a subdirectory.
Route components describing your route configuration. Typically contains a
<Routes> component with nested <Route> elements.Control whether router state updates are internally wrapped in
React.startTransition.- When left
undefined, all router state updates are wrapped inReact.startTransition - When set to
true, Link and Form navigations will be wrapped inReact.startTransitionand all router state updates are wrapped inReact.startTransition - When set to
false, the router will not leverageReact.startTransitionon any navigations or state changes.
Window object override. Defaults to the global
window instance. Useful for testing or non-browser environments.Example
Notes
You usually won’t render a<BrowserRouter> directly in modern apps. Instead, you’ll use a data router created with createBrowserRouter and render it with <RouterProvider>. See the picking a router guide for more information.