mayu-tateno / nextjs-quick-learn

0 stars 0 forks source link

Linking and Navigating #5

Open mayu-tateno opened 1 month ago

mayu-tateno commented 1 month ago

学習内容

https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating 画面遷移をする方法

  1. <Link>コンポーネントを使う
  2. useRouterフックを使う(クライアントコンポーネント)
  3. リダイレクト関数を使う(サーバーコンポーネント)
  4. ネイティブのHistory APIを使う