Dev Helpers
← Back

Nested project issue heading

Place this file at components/NestedProjectIssueHeading.tsx in an App Router project. Mount inside a route with the named dynamic segments shown in useParams.

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>
  );
}