Kliknij w kolejności · Kurs Next.js · Moduł 2: Routing i layouty
Składnia usePathname w komponencie
Ułóż składnię usePathname w komponencie
Elementy do kliknięcia
- { usePathname }
- import
- 'use client'
- 'next/navigation'
- const pathname = usePathname()
- from
Pokaż odpowiedź
Poprawna kolejność:
- 'use client'
- import
- { usePathname }
- from
- 'next/navigation'
- const pathname = usePathname()