Route Groups with the Next.js App Router

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • #shorts
  • Zábava

Komentáře • 6

  • @user-ot9eb3vc2u
    @user-ot9eb3vc2u Před 20 dny +1

    Wow always your contents cool and helpful thanks. Please a lot clone coding course

  • @joeypizzas
    @joeypizzas Před 20 dny

    in your dashboard layout, how do you highlight the current page (products and then customers in your demo)? since usePathName is client side only, do you use headers?

    • @DrSarge37
      @DrSarge37 Před 20 dny

      If you are talking about the “All Products” in the breadcrumbs, that just looks like it’s hardcoded. However, you can mix server and client components. So if you have a left hand nav, that would just be a client component.

    • @leerob
      @leerob  Před 19 dny +1

      Correct! Yeah, you would likely use a client component here. Going to post a follow up video here in a few days that talks about the active navigation pattern, which is similar to this.

  • @tamsssss6765
    @tamsssss6765 Před 20 dny

    post the code?🥺

    • @tamsssss6765
      @tamsssss6765 Před 20 dny

      nvm found it on vercel! Can you do a dynamic dropdown video? =D