BrowserRouter
BrowserRouter
Declarative
Summary
A declarative <Router> using the browser History
API for client-side routing.
Signature
function BrowserRouter({
basename,
children,
useTransitions,
window,
}: BrowserRouterProps)Props
basename
Application basename
children
<Route> components describing your route configuration
useTransitions
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,LinkandFormnavigations 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.
For more information, please see the docs.
window
Window object
override. Defaults to the global window instance