# Function createRoutesFromChildren

- createRoutesFromChildren(children, parentPath?): 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.

  #### Parameters

  - children: ReactNode
  - `Optional` parentPath: number[]

  #### Returns RouteObject[]

  #### See

  https://reactrouter.com/utils/create-routes-from-children

  - Defined in common/temp/node_modules/.pnpm/react-router@6.23.1_react@18.3.1/node_modules/react-router/dist/lib/components.d.ts:153