Router
interface RouterProps extends SuspenseRouterProps {
staticContext?: RouterContextInterface;
}
interface RouterContextInterface {
basename: string;
location: Location;
navigationType: Action;
isEqualToCurrentPathname: (to: To) => boolean;
createLink: (to: To) => Path;
isStaticContext: boolean;
statusCode?: number;
url?: string;
}
<Router> is the low-level interface that is shared by all router components (like <SuspenseRouter> and <StaticRouter>). In terms of React, <Router> is a context provider that supplies routing information to the rest of the app (HistoryContext, RouterContext and LocationContext are declared here).
You probably never need to render a <Router> 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.