useRoutes
Returns the element of the route that matched the current location, prepared with the correct context to render the remainder of the route tree. Route elements in the tree must render an to render their child route's element.
function useRoutes(routes: RouteObject[], locationArg?: Partial<Location> | string): React.ReactElement | null;
§
useRoutes(routes: RouteObject[], locationArg?: Partial<Location> | string): React.ReactElement | null
[src]§Return Type
§
React.ReactElement | null
[src]