--- title: Router --- # ``
Type declaration ```tsx declare function Router( props: RouterProps ): React.ReactElement | null; interface RouterProps { basename?: string; children?: React.ReactNode; location: Partial | string; navigationType?: NavigationType; navigator: Navigator; static?: boolean; } ```
`` is the low-level interface that is shared by all router components (like `` and ``). In terms of React, `` is a [context provider][context] that supplies routing information to the rest of the app. You probably never need to render a `` manually. Instead, you should use one of the higher-level routers depending on your environment. You only ever need one router in a given app. The `` prop may be used to make all routes and links in your app relative to a "base" portion of the URL pathname that they all share. This is useful when rendering only a portion of a larger app with React Router or when your app has multiple entry points. Basenames are not case-sensitive. [context]: https://reactjs.org/docs/context.html#contextprovider