parallel routes

Rendering several pages side by side in one layout, each from a folder prefixed with @, such as @analytics.

In more detail

Each @folder becomes a named slot passed to the parent layout as a prop next to children. Slots load, stream and fail independently, each with its own loading and error files.

Example

export default function Layout({ children, analytics, metrics }) { /* ... */ }

Related terms

Taught in

References