NextJS: 04-09 Active link that match current route

Опубликовано: 17 Май 2026
на канале: Easy Frontend
1,472
27

Slide: https://drive.google.com/drive/folder...
———
#nextjs
#active_link
#nextjs_tutorial
———
VIDEO CHAPTERS:
Made by: Sinh Bui Dinh
Thank you so much! ❤️

00:09 Description requirements
00:25 Introduce active link in next/router & `router` object
01:55 Apply active link by useRouter with next & clsx (build class name easier)
03:55 See all thread working for active link and explain code.
04:15 Test to make sure code working fine & apply code to see active by css in theme.
———
Easy Frontend - Better code every day
🔥 Javascript course: https://course.ezfrontend.com/javascript
🎁 ReactJS course: https://course.ezfrontend.com/reactjs
🎯 Easy Frontend fan:    / @easyfrontend  
———
💰 Support me in making videos, please donate via MoMo/ZaloPay: 0901 309 729
———
Connect with me:
✅ Follow facebook:   / nvhauesmn  
🎉 Fan page:   / learn.easyfrontend  
❓ Group:   / easyfrontend  
💻 Github: https://github.com/paulnguyen-mn
💼 LinkedIn:   / haunguyenmn