Route groups and colocation preview
A route group organizes App Router folders without adding its name to the public URL. Put the group name inside parentheses. Ordinary implementation files can be colocated with a route; the reserved file conventions determine the public interface. This preview uses simple static pages only.
Organize two areas without changing URLs
app/ layout.tsx (shop)/ catalog/ page.tsx BookCard.tsx (support)/ help/ page.tsxThe UI routes are /catalog and /help. Neither /shop/catalog nor /support/help is introduced by this tree. BookCard remains a component module.
Detect collisions before building
If you add app/(support)/catalog/page.tsx, both groups would claim /catalog. Groups do not provide URL namespaces, so choose different public paths or consolidate the route. A later chapter covers group-specific layouts and private folders in depth. If groups have separate root layouts rather than a shared top-level root layout, moving between those roots causes a full page load; groups alone do not imply that behavior.
Common mistake
Do not use route groups as access control. A folder named (private) does not authenticate visitors or restrict access to its page.
Try it yourself
Design a help and store group with three distinct public paths; check there are no duplicate URL claims.
Example status: static walkthrough; Next.js build and browser behavior have not been executed in this authoring environment.