--- title: Routes --- # `` Rendered anywhere in the app, `` will match a set of child routes from the current [location][location]. ```tsx interface RoutesProps { children?: React.ReactNode; location?: Partial | string; } ; ``` If you're using a data router like [`createBrowserRouter`][createbrowserrouter] it is uncommon to use this component as routes defined as part of a descendant `` tree cannot leverage the [Data APIs][data-apis] available to [`RouterProvider`][router-provider] apps. You **can and should** use this component within your `RouterProvider` application [while you are migrating][migrating-to-router-provider]. Whenever the location changes, `` looks through all its child routes to find the best match and renders that branch of the UI. `` elements may be nested to indicate nested UI, which also correspond to nested URL paths. Parent routes render their child routes by rendering an [``][outlet]. ```tsx }> } /> } /> } /> ``` [location]: ../utils/location [outlet]: ./outlet [use-route]: ../hooks/use-routes [createbrowserrouter]: ../routers/create-browser-router [data-apis]: ../routers/picking-a-router#data-apis [router-provider]: ../routers/router-provider [migrating-to-router-provider]: ../upgrading/v6-data