Props
Optionalbasename?: stringApplication basename
Optionalchildren?: ReactNode<Route> components describing your route configuration
A History implementation for use by the router
Optionalunstable_useTransitions?: booleanControl whether router state updates are internally wrapped in
React.startTransition.
undefined, all router state updates are wrapped in
React.startTransitiontrue, Link and Form navigations will be wrapped
in React.startTransition and all router state updates are wrapped in
React.startTransitionfalse, the router will not leverage React.startTransition
on any navigations or state changes.For more information, please see the docs.
A declarative <Router> using the provided history
implementation for client-side routing.
A declarative
<Router>that accepts a pre-instantiatedhistoryobject. It's important to note that using your ownhistoryobject is highly discouraged and may add two versions of thehistorylibrary to your bundles unless you use the same version of thehistorylibrary that React Router uses internally.