Page関数に引数を定義すると、URLのパラメータを動的に取得することができる。
page.tsx
export default function Page({ params }: {
params: { id: number },
}) {
// ここに処理
}
Go to list of users who liked
Page関数に引数を定義すると、URLのパラメータを動的に取得することができる。
export default function Page({ params }: {
params: { id: number },
}) {
// ここに処理
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked