#7. How to Give the Active Class to a Navbar Link

·2024년 4월 17일
post-thumbnail

usePathname()

  • from "next/navigation"
  • pathname을 받아낼 수 있음
    • ex) /, /contact, /blog 등
profile
프론트엔드 개발자가 되고 싶은 취준생

0개의 댓글