Like if the layout includes a nav, and I want to highlight the nav item on the current page. Is that possible, or do I need to make the nav item a client component, so I can use import { usePathname } from 'next/navigation';
?
Like if the layout includes a nav, and I want to highlight the nav item on the current page. Is that possible, or do I need to make the nav item a client component, so I can use import { usePathname } from 'next/navigation';
?
Filed under: Kiến thức lập trình - @ 12:43