Minis Router
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 propsProps
- Anchor to basenamebasenamebasenamestringstring
Application basename
- Anchor to childrenchildrenchildrenReact.ReactNodeReact.ReactNode
components describing your route configuration
- Anchor to useTransitionsuse
Transitionsuse Transitions booleanboolean Control whether router state updates are internally wrapped in
.- When left
undefined, all router state updates are wrapped in - When set to
true,
and
navigations will be wrapped in
and all router state updates are wrapped in- When set to
false, the router will not leverageon any navigations or state changes.
For more information, please see the docs.
- When left
- Anchor to viewTransitionsview
Transitionsview Transitions booleanboolean - Anchor to windowwindowwindowWindowWindow
Windowobject override. Defaults to the globalwindowinstance
Was this page helpful?