NextJS 14 - How to FETCH DATA, SERVER API Routes

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

КОМЕНТАРІ • 24

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

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

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

    Nice tutorial to start with NextJs

  • @User-wp8sh
    @User-wp8sh 29 днів тому

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

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

    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  7 місяців тому

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

  • @محمدحسینمسلمی-ح2ذ
    @محمدحسینمسلمی-ح2ذ 5 місяців тому +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)

  • @John-wx3zn
    @John-wx3zn 6 днів тому

    Thank you.

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

    wonderful tutorial ... plzz continue this.

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

    Love the intro 💪

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

    Thank you!

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

    thanks man

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

    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  2 місяці тому

      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 5 місяців тому

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

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

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

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

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

    • @codrkai
      @codrkai  4 місяці тому +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 👊

  • @farzad5128
    @farzad5128 Місяць тому

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

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

    Use typescript

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

    but it will now work after deploy

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

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

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

    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)