Coding task · Next.js course · Module 2: Routing and Layouts
Practice: Dashboard Layout
Create a layout for the dashboard section
Task
Create the file app/dashboard/layout.js with a default-exported DashboardLayout({ children }) component. Return a nav with at least two Link components (from next/link) to dashboard pages, e.g. /dashboard and /dashboard/settings, and a main element that displays children.