Coding task · Next.js course · Module 2: Routing and Layouts
Practice: Parallel Routes
Parallel Routes let you render multiple slots at the same time in one layout, using the @folder convention.
Task
Build a layout with two parallel slots @main and @sidebar: default-export a DashboardLayout({ main, sidebar }) component that displays both slots side by side in one container with display: flex or grid (e.g. a div with style={{ display: 'flex' }} or the flex class).