Next.js 14 Tutorial - 7 - Dynamic Routes

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2023
  • 📘 Frontend Interview Course - learn.codevolution.dev/
    💖 Support UPI - support.codevolution.dev/
    💖 Support Paypal - www.paypal.me/Codevolution
    💾 Github - github.com/gopinav
    📱 Follow Codevolution
    + Twitter - / codevolutionweb
    + Facebook - / codevolutionweb
    📫 Business - codevolution.business@gmail.com
    Next.js 14
    Next.js Tutorial
    Next.js 14 Tutorial
    Next.js Tutorial for Beginners
    Dynamic Routes
    Dynamic Routes in Next.js
    Next.js 14 Dynamic Routes

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

  • @joja2174
    @joja2174 6 หลายเดือนก่อน +35

    bro explained a 2 hours lecture in 7 mins

  • @shubhaverma5697
    @shubhaverma5697 4 วันที่ผ่านมา

    Wow. Amazed by the content you provided in 7 minutes. I must have tried to learn about dynamic routes from so many resources, never quite understood it until now.

  • @uquantum
    @uquantum 26 วันที่ผ่านมา +3

    Thanks so much❤ I’d moved so quickly to astro (ssr) a couple years ago, but now I have a next.js project, so I really appreciate your presentation style and the content to get me up to speed.

  • @user-cr5tv8bw2x
    @user-cr5tv8bw2x 7 หลายเดือนก่อน +7

    Thanks. I'm following this course as soon as they drop. Promise to finish it with you. This is great

    • @Usama-Tanoli
      @Usama-Tanoli 2 หลายเดือนก่อน

      so as you might finished this could you tell me how is this

  • @euroclydon7883
    @euroclydon7883 7 หลายเดือนก่อน +8

    Your explanations are top notch

  • @budifajriarzi4233
    @budifajriarzi4233 4 หลายเดือนก่อน +1

    Thank you for step-by-step tutorial, very helpful

  • @bhn1997
    @bhn1997 3 หลายเดือนก่อน +1

    Thanks for your guides. Exactly what I wanted to render!

  • @jeffreyndukwe3869
    @jeffreyndukwe3869 7 หลายเดือนก่อน +1

    You are doing a great and wonderful job. Nice teaching

  • @omozemojeaugustine3529
    @omozemojeaugustine3529 หลายเดือนก่อน +1

    Am following the series thanks for breaking this down to this level

  • @latifurrahman2648
    @latifurrahman2648 3 หลายเดือนก่อน +1

    this course helps me very much. you are the best instructor

  • @riavi
    @riavi 3 หลายเดือนก่อน +2

    Thanks! This cleared up what my instructor meant by dynamic routes, I didn't get it in class.

  • @yinonelbaz5309
    @yinonelbaz5309 6 หลายเดือนก่อน +2

    You are doing a great and wonderful job!

  • @rohit_dev
    @rohit_dev 7 หลายเดือนก่อน +1

    I am going to finish this series with you 🙌

  • @shresthagaurab2193
    @shresthagaurab2193 4 หลายเดือนก่อน

    Thanks u so much step by step , it's very helpful

  • @user-xq9wf6pg2x
    @user-xq9wf6pg2x 6 หลายเดือนก่อน

    so useful teaching! Thanks

  • @user-vu9dl3vn7l
    @user-vu9dl3vn7l 19 วันที่ผ่านมา

    Thank you so much for the guide! ❤

  • @DushyantJoshi
    @DushyantJoshi 3 หลายเดือนก่อน

    Just Awesome. Thanks for this.

  • @sejeminecraft1
    @sejeminecraft1 3 หลายเดือนก่อน

    Thank you so much. Short and precise, extremely helpful!

  • @md.Alamin-ej6ro
    @md.Alamin-ej6ro หลายเดือนก่อน

    Damn THIS was too good, it helps me a lot i was searching for this type of content but everyone just explained it in a more difficult way , anyway it was damn good to understand the basics of the dynamic routes. Thanks a lot..

  • @rickyanchores4464
    @rickyanchores4464 5 หลายเดือนก่อน

    Great tutorial!!

  • @syedakashish5913
    @syedakashish5913 4 หลายเดือนก่อน

    explanation is so good.And it seems like john the don it teaching.

  • @asifnewaz477
    @asifnewaz477 3 หลายเดือนก่อน

    Thanks bro! You are so cool!

  • @mohitrathore8808
    @mohitrathore8808 7 หลายเดือนก่อน

    Wonderful, keep going

  • @omexaapp3062
    @omexaapp3062 7 วันที่ผ่านมา

    certainly u are the best.

  • @wojteeh
    @wojteeh 2 หลายเดือนก่อน

    Very useful, thanks ;)

  • @user-bu7xp4vd2s
    @user-bu7xp4vd2s 6 หลายเดือนก่อน

    Thank you!

  • @andrewberrio7374
    @andrewberrio7374 3 หลายเดือนก่อน

    Thank you sir

  • @osaka-ben9291
    @osaka-ben9291 5 หลายเดือนก่อน

    thank you so much ! i was struggling with NextJs router specially with the 14.0 version because we're not using the folder "pages" anymore if i get it right.

  • @aakashyadav6228
    @aakashyadav6228 5 หลายเดือนก่อน +3

    Bro, please continue with the series.

  • @riyad-appscode
    @riyad-appscode 7 หลายเดือนก่อน

    Thanks 🙂

  • @Pipu748
    @Pipu748 12 วันที่ผ่านมา

    love it

  • @nahar830
    @nahar830 7 หลายเดือนก่อน

    Thanks

  • @MucahitCanbey
    @MucahitCanbey 4 หลายเดือนก่อน

    Thanks ✨✨

  • @elenak2528
    @elenak2528 4 หลายเดือนก่อน

    Thank you! Where did you find it? There is no this info in documentation I think. Only with the help of your video I managed to finally do dynamic routes ( params especially are never mentioned in documentation, or I am stupid I don;t know)

  • @nicolaskorner9351
    @nicolaskorner9351 4 หลายเดือนก่อน

    Hey Codevolution & watchers,
    In your dynamic routes we're using params. Is there any difference to your usage and type declaration compared to NextJS useParams für dynamic routes? In their docs they create a variable with const params = useParams (and import it). Thanks for your videos!

  • @kevinchittilapilly8221
    @kevinchittilapilly8221 3 หลายเดือนก่อน

    Thanks for the lecture. I have a doubt. How can I add a check so that only if the productId is a number, I navigate to the right page. But if the user enters something like product/temp it does not navigate to the productid page

  • @tsmusic9587
    @tsmusic9587 4 หลายเดือนก่อน

    NICE video

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

    Sir, words can not express our appreciation to your short and fully concised tutorial, we are very grateful for this. i watched a 3 hours tutorial but couldnt understand fully but yours of less than 10 mins i feel like a pro in this
    thank you so much for all you do sir❤❤❤

  • @sahandsepidar4089
    @sahandsepidar4089 7 หลายเดือนก่อน

    i only tought the only way to get the paramd is using hooks , i didnt know about params ; thank you

  • @yellhtetnaing2245
    @yellhtetnaing2245 7 หลายเดือนก่อน

    waiting for next pieces

  • @user-mc1dm3oc7o
    @user-mc1dm3oc7o 5 หลายเดือนก่อน +3

    Does this work with js also?
    It renders only the "404 page not found" component in my case

    • @saintrivers962
      @saintrivers962 3 หลายเดือนก่อน

      Yeah, I'm having the same problem.

  • @chesterxp508
    @chesterxp508 6 หลายเดือนก่อน

    GoodJob!

  • @zohaibafridi3522
    @zohaibafridi3522 5 หลายเดือนก่อน

    will it work on build?

  • @theangelofspace155
    @theangelofspace155 7 หลายเดือนก่อน

    But what happen of we try to access a outOfRange dynamic route? Do we need to build that logic so if a user is trying to go to /[100] but we only have 50 resources? Or will nextJS render a 404 - not found?

    • @HimanshuGogoi
      @HimanshuGogoi 7 หลายเดือนก่อน

      u need to manually redirect it to not found else it will still attempt to show the page

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

    why my params.productID is showing undefined in console.log

  • @behroozbk
    @behroozbk 4 หลายเดือนก่อน

    best

  • @HassanAKhann
    @HassanAKhann หลายเดือนก่อน +1

    Saviour

  • @Kmkn308
    @Kmkn308 7 หลายเดือนก่อน

    waiting more videos

  • @HassanMehboob-ij1cq
    @HassanMehboob-ij1cq 3 หลายเดือนก่อน

    How I can get id in nested component?

  • @rahmannurudin5003
    @rahmannurudin5003 6 หลายเดือนก่อน

    where's _app module in newest next.js version?

  • @user-ll2lt6ki4f
    @user-ll2lt6ki4f 2 หลายเดือนก่อน

    If someone gets an error, the id does not appear in the text on the page or next shows an error, check whether you wrote the ID correctly in the ProductId folder. In the folder name, the first letter I must be capitalized product Id

    • @Kevin-ft1xe
      @Kevin-ft1xe 2 หลายเดือนก่อน

      Thanks mate

  • @manuelrosalesmaquieyra9687
    @manuelrosalesmaquieyra9687 23 วันที่ผ่านมา

    bestia animal idolo

  • @selvamkarthik9605
    @selvamkarthik9605 7 หลายเดือนก่อน +1

    😊

  • @jonathanguerrero5991
    @jonathanguerrero5991 3 หลายเดือนก่อน

    Dynamic routs information start at minute 4:00 all previously said is not dynamic routes.

  • @adityarajaram3124
    @adityarajaram3124 6 หลายเดือนก่อน +1

    I have question while deploying in next js 14 with app router (Dynamic Route) it's not supported. Do you know any way?

    • @iqbalali3341
      @iqbalali3341 5 หลายเดือนก่อน

      I also have the same problem, have you found a solution?

    • @victoragese9275
      @victoragese9275 4 หลายเดือนก่อน

      Same here

  • @bj0urne
    @bj0urne 2 หลายเดือนก่อน

    My VS Code doesn't automatically format my code when I save the file like yours does... Is that an extension you're using?

  • @warriors_edge
    @warriors_edge 14 วันที่ผ่านมา

    fuckin amazing, thank you

  • @JagadishL-wj6sn
    @JagadishL-wj6sn หลายเดือนก่อน

    How do you handle 404 page for dynamic routes

    • @programwithalex
      @programwithalex 19 วันที่ผ่านมา

      well, lets say you are searching for that id in the database and returning its properties, then yuo can do a conditional rendering to see if your api returned the data or returned a 404 error!

  • @gabrielsouza4483
    @gabrielsouza4483 3 หลายเดือนก่อน

    Why when im ussing output: export I got the error "Page "/[ID1]/[ID2]" is missing "generateStaticParams()" so it cannot be used with "output: export" config." ??? I dont have all possible values to ID2 and ID2 to generateSTtaicParams

    • @EzequielGrigolatto-lg6mz
      @EzequielGrigolatto-lg6mz หลายเดือนก่อน +1

      I'm getting the same issue, were you able to solve it?

    • @gabrielsouza4483
      @gabrielsouza4483 หลายเดือนก่อน +1

      @@EzequielGrigolatto-lg6mz the """"fix""" is downgrad tô 13.4.9 , apparently next 14 release with this bug but never fixed

    • @EzequielGrigolatto-lg6mz
      @EzequielGrigolatto-lg6mz หลายเดือนก่อน

      @@gabrielsouza4483 thanks for your quick answer! unfortunately downgrade next version is not possible on my case, I'll look for other options then

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

      @@EzequielGrigolatto-lg6mz I tried almost everything , almost for two weeks, but if u find a solution tell me

  • @ObjectiveTruth-zm3hi
    @ObjectiveTruth-zm3hi 25 วันที่ผ่านมา

    isn't TypeScript a waste of time ?

  • @gorkemgok9313
    @gorkemgok9313 3 หลายเดือนก่อน

    The voice is AI. I am sure.

    • @programwithalex
      @programwithalex 19 วันที่ผ่านมา

      nah he is just Indian 🤣🤣🤣🤣🤣🤣

  • @anasouardini
    @anasouardini 2 วันที่ผ่านมา

    BRO, you've been repeating the same thing in the last 3 videos

  • @yogita868
    @yogita868 2 หลายเดือนก่อน

    I have this created this file structure in Next js version ->14
    project\[[id]]
    Inside page.tsx I have this code->
    'use client';
    import PathwayContainer from '@/components/Pathways/PathwayContainer';
    const PathwayPage = () => {
    const clientID = '06375fa6-999a-46a8-9d80-12e41e76aa52';
    return (
    );
    };
    export default PathwayPage;
    This clienID I would fetch from useselector later as of now i keep code like this.
    and this is the component for PathwayContainer.
    'use client';
    interface IPathwayContainerProps {
    fetchClientProjects: (clientId: string) => Promise;
    clientID: string;
    }
    const PathwayContainer: FunctionComponent = (props) => {
    const {
    fetchClientProjects,
    clientID,
    } = props;
    const [loading, setLoading] = useState(false);
    const [activeProjectList, setActiveProjectList] = useState([])
    useEffect(() => {
    const getActiveProjectList = async () => {
    try {
    setLoading(true);
    const projectInfo = await fetchClientProjects(clientID);
    setActiveProjectList(projectInfo);
    }
    catch {
    }
    finally {
    setLoading(false);
    }
    }
    getActiveProjectList();
    }, [clientID])
    return (
    {activeProjectList.map((activeProject, index) => (

    {activeProject.name}

    ))}

    );
    };
    export default connect(() => ({}), {
    fetchClientProjects: actions.clients.fetchClientProjects,
    })(PathwayContainer);
    whevaver user clcik on this link which i have crated using clientID is not changed but my useeffect code runs again and again whenver user click on links. same code works fine in react. How can i solve this issue.please help.

  • @igorluyz_
    @igorluyz_ 6 หลายเดือนก่อน

    You are doing a great and wonderful job!

    • @adityarajaram3124
      @adityarajaram3124 6 หลายเดือนก่อน

      I have question while deploying in next js 14 with app router (Dynamic Route) it's not supported. Do you know any way?

  • @Txushin
    @Txushin 2 หลายเดือนก่อน

    Thanks