Next.js Tutorial - 7 - Dynamic Routes

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 65

  • @Codevolution
    @Codevolution  3 ปีที่แล้ว +2

    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!

  • @aayushlamsal4868
    @aayushlamsal4868 3 ปีที่แล้ว +7

    The best web developer instructor ever.Thankyou brother for this video !!

  • @pasokoner
    @pasokoner 2 ปีที่แล้ว +3

    I really love the simplicity of your explanation. Thank you for this.

  • @chengjinfei8139
    @chengjinfei8139 3 ปีที่แล้ว +27

    i really like this series. Even better than the one i have bought on Udemy.

    • @mengotduran8162
      @mengotduran8162 ปีที่แล้ว

      this guy nailed it. I watched series of videos on routers none compared to his, he made it really clear and simple

  • @iUmerFarooq
    @iUmerFarooq 3 ปีที่แล้ว +10

    Before coding you teach the concept visually(means using a diagram) is awesome.
    Thanks a lot :)

    • @GemzProfitGaming
      @GemzProfitGaming 3 ปีที่แล้ว +1

      Btw can i ask what stack you learnt for web development?

    • @iUmerFarooq
      @iUmerFarooq 3 ปีที่แล้ว +1

      @@GemzProfitGaming MERN

    • @GemzProfitGaming
      @GemzProfitGaming 3 ปีที่แล้ว +1

      @@iUmerFarooq but u learning next js to Make it MERN+N MERNN :D

    • @GemzProfitGaming
      @GemzProfitGaming 3 ปีที่แล้ว +1

      @@iUmerFarooq im also MERN stack

  • @alex-v7e6v
    @alex-v7e6v 11 หลายเดือนก่อน

    the best next.js tutorial, thank you very very much!!!

  • @technoman19
    @technoman19 3 ปีที่แล้ว +3

    Great explanation in each tutorial....🔥

  • @Sergio-di1jt
    @Sergio-di1jt 2 ปีที่แล้ว +1

    Bro you are so good explaining even when my english is not that good i can understand everithing

  • @leroydenengelsman1392
    @leroydenengelsman1392 2 ปีที่แล้ว

    So simple, yet so powerful. Thanks a lot for the detailed explanation.

  • @dennisalexander5468
    @dennisalexander5468 ปีที่แล้ว

    damnn that sweater routing is magic!

  • @maurya-ankit
    @maurya-ankit 3 ปีที่แล้ว +3

    As always 🔥 😍

  • @mllbtv2100
    @mllbtv2100 ปีที่แล้ว

    usefull for navigating from products to single page display

  • @AbdelhameedG
    @AbdelhameedG 3 ปีที่แล้ว +3

    Thanks buddy, God bless you.

  • @prasantpant9483
    @prasantpant9483 2 ปีที่แล้ว

    great minset to deliver fine explanation

  • @kajalagarwala3697
    @kajalagarwala3697 3 ปีที่แล้ว +1

    amazing tutorial and well explained every concepts. Thanks a lot sir.

  • @chriscrowd4946
    @chriscrowd4946 2 ปีที่แล้ว

    Thanks, excellent explanation!

  • @mahiruddinseikh3851
    @mahiruddinseikh3851 2 ปีที่แล้ว +1

    Really appreciated sir, very good job. Thank you very much.

  • @yinonelbaz5309
    @yinonelbaz5309 2 ปีที่แล้ว +5

    What a great tutorial, everything is clearly explained in detail. Thank you Wishwash for the investment you give in this channel!!!

  • @brightsight7893
    @brightsight7893 ปีที่แล้ว

    worth it for every version of next.js

  • @realtonaldrum
    @realtonaldrum 2 ปีที่แล้ว

    2:10 how to make this index.js list dynamic? so i just need to edit the productlist.json and the list on /products extents automatically when the corresponding .json array is extended as well?!

  • @badrinathchenna2209
    @badrinathchenna2209 3 ปีที่แล้ว +1

    Great explaining..

  • @karthikpuvvula
    @karthikpuvvula ปีที่แล้ว +1

    this works on localhost but not when i host this on firebase. it returns 404 page instead. not sure why. please help !

  • @RubberDuckCoding
    @RubberDuckCoding 3 ปีที่แล้ว +1

    VERY NICE!

  • @android55555
    @android55555 2 ปีที่แล้ว +1

    ProductId doesn't show up on the page. Were there changes to router tasks since this tutorial been created?

  • @tejastank2003
    @tejastank2003 2 ปีที่แล้ว

    amazing tutorial!

  • @vkjawla
    @vkjawla ปีที่แล้ว

    Thank you friend

  • @revanslacey
    @revanslacey ปีที่แล้ว

    First dynamic route I've managed to get working. I wonder if there has been an update as I think there may be another way to do this now.

  • @benoitgrasset
    @benoitgrasset ปีที่แล้ว

    does it still work when you refrresh the page when editing a product ?

  • @JeffZiegler76
    @JeffZiegler76 11 หลายเดือนก่อน

    I just created a new VS Code Next.js app, to get about page to open, I had to create a src\app\about\page.tsx. I can't find any files hard codes to "page.*". Is there a video on how this is working?

  • @bishalshrestha9795
    @bishalshrestha9795 3 ปีที่แล้ว +2

    Hey great tutorial as always. I have a quick question here if anyone can help me out.
    If we have a folder name let's say "product details" under pages folder, then how to route on this page? What would be its url? Please help.

    • @stan5591
      @stan5591 2 ปีที่แล้ว +1

      You call it « product-details »

  • @NuhAleph
    @NuhAleph 3 ปีที่แล้ว +2

    Never seen something like this any library

  • @CodePursuit
    @CodePursuit ปีที่แล้ว

    thank you

  • @Хикка-Дегроид
    @Хикка-Дегроид ปีที่แล้ว

    i dont get the point. what is the use of the dynamic route if we had to create separate file for fixed path? and so on we would need to create other files for specific information. then whats the difference between this and using non dynamic route?

  • @abdulazeezatanda2371
    @abdulazeezatanda2371 3 ปีที่แล้ว +1

    4:21
    It already has a context and that's product. So simply using id makes more sense. Imagine having a product object, or database table, and then naming its ID property, or column, as productId. Isn't that unnecessarily repetitive? And if you do that for every object, one won't intuitively be sure of the ID property name for the object in question while writing client code until one checks. Just use ID and one less burden to slow down dev time.

  • @brayanmejia6316
    @brayanmejia6316 ปีที่แล้ว +1

    can you make an update for nextjs 13 using the app directory?

  • @vidyaagre4657
    @vidyaagre4657 2 ปีที่แล้ว

    how to route dynamically fetching api data ?

  • @djamaatul
    @djamaatul 3 ปีที่แล้ว +1

    How to multiple dynmic? , like /id/year

  • @nishants3967
    @nishants3967 ปีที่แล้ว

    Should not this be router.params.productId, instead of router.query.productId? Just popped up in mind comparing with Express.js and also productId is not a query string as well.

  • @baseerx
    @baseerx 2 ปีที่แล้ว

    Sir looking forward for your Nuxt 3 tutorial...if any please mention link..

  • @TOPINDIA-pe3ox
    @TOPINDIA-pe3ox 3 ปีที่แล้ว

    Webnesday series discontinued ?

  • @snssatyabhagavan
    @snssatyabhagavan 3 ปีที่แล้ว

    It is nice video.

  • @husienadel
    @husienadel 2 ปีที่แล้ว

    Yo made the Seater page with starting Capital S and in the page name and that's make conflict, try to make it sweater with no caps and will showing the sweater page instead of product derails page ;)

  • @musiclovers8488
    @musiclovers8488 ปีที่แล้ว +1

    all these routing method is not working anymore

  • @assad.rajab-2
    @assad.rajab-2 3 ปีที่แล้ว +1

    I keep getting the error saying: Error: The default export is not a React Component in page: "/product"
    What is this?

    • @hrishikeshshinde6189
      @hrishikeshshinde6189 3 ปีที่แล้ว +1

      Hey in next js you always have to export the components as default export you cannot simply export them individually as we can do in react. That is why you are getting the error.

    • @assad.rajab-2
      @assad.rajab-2 3 ปีที่แล้ว +1

      @@hrishikeshshinde6189 oh yeah, you are right. I Figured out that, I actually wanted to reply to my self telling the others about it but I forgot. Thank you man. Keep going 💪

    • @hrishikeshshinde6189
      @hrishikeshshinde6189 3 ปีที่แล้ว

      @@assad.rajab-2 yes brother 💪

  • @arjunkprasad1508
    @arjunkprasad1508 2 ปีที่แล้ว

    Playback Speed 1.25. Thank me later

  • @ChrisGWGreen
    @ChrisGWGreen ปีที่แล้ว

    FFS get to the point!. If you have to sit through this, "from the previous video" is so unnecessary

  • @vikasharge5152
    @vikasharge5152 ปีที่แล้ว +1

    nextjs 13 version changed everything 🥲

  • @razimomin1900
    @razimomin1900 3 ปีที่แล้ว

    what if i want url like localhost:3000/product/sweater/123/xyz
    how will be the page structure

    • @muhammadbilal6865
      @muhammadbilal6865 2 ปีที่แล้ว +1

      so easy. Look
      1) First create a folder named "product". Then
      2) Create a folder named sweater under that folder.
      3) Under Sweater directory create a folder named [pid]
      4) Now under this folder create a file named [uid].jsx
      Thats it man
      and you will be good to go.

    • @Array_of_objects
      @Array_of_objects 2 ปีที่แล้ว

      Yes, this is what I was looking for. So in the pages directory I create a file named users/[id]/verify/[token].js and it creates that folder structure you have there and whatever component I create in the [token].js file shows when I got to a route like localhost:3000/users/234890fh/verify/2398fhaaeh

  • @mohammadhosseinkhanzadi6701
    @mohammadhosseinkhanzadi6701 2 ปีที่แล้ว

    thanck for velag @codevoluttion