Skip to main content

MinisRouter

MinisRouter is the main routing component for Shop Minis that wraps React Router's BrowserRouter and provides optional support for smooth navigation transitions using the CSS View Transitions API. It should be placed at the root of your application to enable client-side routing.

Anchor to basename
basename
string

Application basename

Anchor to children
children
React.ReactNode

components describing your route configuration

Anchor to useTransitions
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,

and

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.

Anchor to viewTransitions
viewTransitions
boolean
Anchor to window
window
Window

Window object override. Defaults to the global window instance


Was this page helpful?