Open this example in the interactive library
Source code
"use client";
// components/RouteBoundFormKey.tsx
import { useParams } from "next/navigation";
export default function RouteBoundFormKey() {
const { slug } = useParams<{ slug: string }>();
return (
<label key={slug}>
Notes for {slug}
<textarea defaultValue="" />
</label>
);
}
