Next.js Tutorial - 11 - Navigating Programmatically
ฝัง
- เผยแพร่เมื่อ 6 ก.พ. 2025
- 📘 Courses - learn.codevolu...
⚡️ Checkout Taskade! www.taskade.com/
💖 Support UPI - support.codevo...
💖 Support PayPal - www.paypal.me/...
💾 Github - github.com/gop...
📱 Follow Codevolution
Twitter - / codevolutionweb
Facebook - / codevolutionweb
📫 Business - codevolution.business@gmail.com
Navigating Programmatically
Next.js Tutorial on Navigating Programmatically
Give Taskade a try - www.taskade.com/
Use Coupon Code 'CODEVOLUTION' for 50% OFF lifetime discount applied to any upgraded subscription
1st 100 viewers to contact via www.taskade.com/contact get the upgrade for free!
This course is as complete as docs and I Thank you sooo much ❤❤😍😍
Thanks a lot, Vishwas!
u r so great man! thanks
this now requires
"use client"
import { useRouter } from 'next/navigation';
I have encountered an error and after checking the docs, this has worked fine
Not really understand the different between push and replace route.
same
VERY NICE!
Thank you Sir
Thank you!!!!!!!
thank youuu
I should just try this out, but are the routes "relative"? Like if you're already in "/products" and you choose the route "/100", does that take you to "/products/100", assuming you had the other aspects set up? Or, when you push the route, it always is the entire route that needs to be sent?
Hey David, we have to state router.push("/product/100") if we have to go to product/100 path irrespective of the current path.
HIT THE LIKE
good
ca marche pas je sais pas pourquoi
Man, why your "t"s sound like drum? :D Great videos, btw, thanks!
Hii sir why useRouter is routing pages very slow
browser slow to render, it dom element after all . you have low pc spec
If you are running your app locally then it will taking to time to build that page. It happens for first time only after that it will load as expected.
🫡
Thanks a lot, Vishwas!