NextJS 14 - How to FETCH DATA, SERVER API Routes

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ • 25

  • @BrendonGruis
    @BrendonGruis 5 місяців тому +1

    I really like the straightforward nature of this tutorial. Way to stay on task and show how to do the thing concisely.

  • @devid2030
    @devid2030 9 місяців тому +1

    Nice tutorial to start with NextJs

  • @User-wp8sh
    @User-wp8sh 3 місяці тому

    thank you very much! it was straightforward which is easy to understand. thank you.

  • @antwarior
    @antwarior Місяць тому +1

    can you please do a video on setting up a form and getting the users details, authenticating their details and then submitting that info to the database, i have been watching your videos for 2 days and i am still kinda confused on how that transaction works, and by the way, i think its best to do the videos in a way where you show how to do it the production way and then show other ways, that would make it a lot easier and be great way for me to learn, follow along and finally put something out for production at the same time @Codr Kai

  • @محمدحسینمسلمی-ح2ذ
    @محمدحسینمسلمی-ح2ذ 8 місяців тому +1

    some people used to set GET(req,res), if you use "res" in it you CAN NOT use {params} too, you'll probably get and error!(params is undefined)

  • @coursereviewer5137
    @coursereviewer5137 10 місяців тому

    wonderful tutorial ... plzz continue this.

  • @legadax1716
    @legadax1716 9 місяців тому

    Needed this just now. Thanks mate 😊.
    Woyld love for you to do a tutorial where you show getting data and allowing them be in different pages. For example. If i had a side bar with profile and dashboard. How to make the data pass to the 2 pages without having to necessarily call the API again so that its very fast navigating.

    • @codrkai
      @codrkai  9 місяців тому

      Thanks for the input! Stay tuned, I'll have more out 🙌

  • @AndresMartinez-se9zl
    @AndresMartinez-se9zl 5 місяців тому

    Hey, what is the difference between router handlers and api routes, and which one can i use in a next js 14 app?

    • @codrkai
      @codrkai  5 місяців тому

      This is part of the Next JS 14 tutorial series. Check out the first video which goes through all the basics 🙌

  • @blabla-kk8bl
    @blabla-kk8bl 7 місяців тому

    bro can you make a todo app with next js with external api fetch , typescript would be more related if you can.

  • @daniellchukwu
    @daniellchukwu 8 місяців тому

    Love the intro 💪

  • @ashwinmanghat4416
    @ashwinmanghat4416 4 місяці тому

    But doesn't it mean that the slugs are open and accessible to anyone?

  • @EventLoopHero
    @EventLoopHero 9 місяців тому

    but it will now work after deploy

  • @John-wx3zn
    @John-wx3zn 2 місяці тому

    Thank you.

  • @bhn1997
    @bhn1997 9 місяців тому

    Thank you!

  • @froote
    @froote 7 місяців тому

    Idk why they don’t update the docs. But great tutorial

    • @codrkai
      @codrkai  7 місяців тому +1

      If you go to the NextJS website, make sure to select the "App Router" from the upper left dropdown to see the new docs 👊

  • @mxsniper223
    @mxsniper223 9 місяців тому

    thanks man

  • @farzad5128
    @farzad5128 3 місяці тому

    lol, now main issue is how to get data from db in js file :)) u used static json array

  • @HimanshuSingh-qf6ri
    @HimanshuSingh-qf6ri 8 місяців тому +4

    Use typescript

  • @irule10338
    @irule10338 4 місяці тому

    Fetching to an outside url, in your example dummy.json/products didnt work for me :(

  • @محمدحسینمسلمی-ح2ذ
    @محمدحسینمسلمی-ح2ذ 8 місяців тому

    some people used to set GET(req,res), if you use "res" in it you CAN NOT use {params} too, you'll probably get and error!(params is undefined)