Type declaration
interface OutletProps {
  context?: unknown;
declare function Outlet(
  props: OutletProps
): React.ReactElement | null;

An <Outlet> should be used in parent route elements to render their child route elements. This allows nested UI to show up when child routes are rendered. If the parent route matched exactly, it will render a child index route or nothing if there is no index route.

function Dashboard() {
  return (

      {/* This element will render either <DashboardMessages> when the URL is
          "/messages", <DashboardTasks> at "/tasks", or null if it is "/"
      <Outlet />

function App() {
  return (
      <Route path="/" element={<Dashboard />}>
          element={<DashboardMessages />}
        <Route path="tasks" element={<DashboardTasks />} />
Docs and examples CC 4.0