--- title: StaticRouter --- # StaticRouter [MODES: declarative] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.StaticRouter.html) A [``](../declarative-routers/Router) that may not navigate to any other [`Location`](https://api.reactrouter.com/v7/interfaces/react_router.Location.html). This is useful on the server where there is no stateful UI. ## Signature ```tsx function StaticRouter({ basename, children, location: locationProp = "/", }: StaticRouterProps) ``` ## Props ### basename The base URL for the static router (default: `/`) ### children The child elements to render inside the static router ### location The [`Location`](https://api.reactrouter.com/v7/interfaces/react_router.Location.html) to render the static router at (default: `/`)