A declarative <Router> that stores all entries in memory.
function MemoryRouter({
basename,
children,
initialEntries,
initialIndex,
unstable_useTransitions,
}: MemoryRouterProps): React.ReactElement
Application basename
Nested Route elements describing the route tree
Initial entries in the in-memory history stack
Index of initialEntries the application should initialize to
Control 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.