React Router
Outlet
Render the matched child route inside its parent layout.
Formal Syntax & Structure
react syntaxreact
<Outlet />Working Example
Example Snippetreact
<main><h1>Trail center</h1><Outlet /></main>Render the matched child route inside its parent layout.
<Outlet /><main><h1>Trail center</h1><Outlet /></main>