Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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]

§Parameters

§
locationArg?: Partial<Location> | string optional
[src]

§Return Type

§
React.ReactElement | null
[src]