React Router v6 uses Routes to choose the best matching route branch. Outlet is then used by parent routes to render nested child elements.