# Function UNSAFE_useRoutesImpl

- UNSAFE_useRoutesImpl(routes, locationArg?, dataRouterState?, future?): React.ReactElement | null

- #### Parameters

  - routes: RouteObject[]
  - `Optional` locationArg: string | Partial<Location<any>>
  - `Optional` dataRouterState: RouterState
  - `Optional` future: FutureConfig

  #### Returns React.ReactElement | null

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