Route Groups dùng ngoặc đơn (groupName) để tổ chức routes mà không ảnh hưởng URL.
Ví dụ: (auth)/login và (auth)/register share cùng layout auth nhưng URL vẫn là /login và /register. Useful để: apply layout cho subset of routes, organize large codebases theo features.
Route Groups use parentheses (groupName) to organize routes without affecting the URL.
- For example,
(auth)/loginand(auth)/registershare the same auth layout but the URLs remain/loginand/register. - Useful for: applying a layout to a subset of routes, and organizing large codebases by feature.