createRoutesFromChildren
createRoutesFromChildren(children: ReactNode,parentPath: number[]): RouteObject[]
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.
Properties
(Mandatory properties are in bold)| Properties | Type | Description | 
|---|---|---|
| children | ReactNode | 
Additional properties for advanced use cases
| Properties | Type | Description | 
|---|---|---|
| parentPath | number[] |