🎯 What you'll practice: Shared layouts via Outlet and nested Route definitions.
1-B 2-A 3-A 4-A | 5 = Outlet 6 = index 7 = function DashboardLayout(){return <div><Sidebar/><main><Outlet/></main></div>;} 8 = <Route path="/dashboard" element={<DashboardLayout/>}><Route index element={<Home/>}/><Route path="courses" element={<MyCourses/>}/></Route> 9 = Because DashboardLayout itself only re-renders when the layout's own props/state change — the Outlet is what swaps out, so the Sidebar component instance persists across navigation between child routes | 10 = <Route path="/settings" element={<SettingsLayout/>}><Route index element={<Overview/>}/><Route path="profile" element={<Profile/>}/><Route path="security" element={<Security/>}/></Route>