Coding task · Next.js course · Module 2: Routing and Layouts

Practice: Route Group

A Route Group is a folder in parentheses, e.g. (marketing): it groups pages but does not change the URL, so app/(marketing)/about/page.tsx is still /about.

Task

In the terminal, create a structure with the Route Group (marketing) containing the about and contact pages: mkdir -p creates the folders app/(marketing)/about and app/(marketing)/contact, and touch adds a page.tsx file to each of them. Put paths with parentheses in quotes, e.g. mkdir -p "app/(marketing)/about".