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

createRoutesFromElements

Creates a route config from a React "children" object, which is usually either a <Route> element or an array of them. Used internally by <Routes> to create a route config from its children.

function createRoutesFromElements(children: React.ReactNode, parentPath?: number[]): RouteObject[];
§
createRoutesFromElements(children: React.ReactNode, parentPath?: number[]): RouteObject[]
[src]

§Parameters

§
parentPath?: number[] optional
[src]