Open this example in the interactive library
Source code
"use client";
// components/NestedProjectIssueHeading.tsx
import { useParams } from "next/navigation";
export default function NestedProjectIssueHeading() {
const { project, issue } = useParams<{ project: string; issue: string }>();
return (
<h1>
{project} · Issue {issue}
</h1>
);
}
