Concept
A layout route renders the shared frame, such as navigation and footer, with an outlet where child routes appear. Nested routes then share chrome and state without repeating it.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Layouts doing its job.
const router = createBrowserRouter([
{
element: <AppLayout />, // nav + <Outlet />
children: [
{ path: "/", element: <Home /> },
{ path: "/settings", element: <Settings /> },
],
},
]);
function AppLayout() {
return <><Nav /><main><Outlet /></main></>;
}Rendering the navigation inside every page component. Each navigation then unmounts and remounts the nav, losing focus and scroll, and every page must remember to include it.
Your roadmap puts these before Layouts, unless you already know them.
Once a session shows you understand Layouts, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.