NextJS 13 Tutorial - Routing, Data Fetching, Server Components...

Sdílet
Vložit
  • čas přidán 2. 08. 2024
  • NextJS 13 came with a lot of new changes, so I wanted to make this video explaining what is up with the new update.
    Join our Discord: / discord
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/learn/reactjs-pr...
    🐙 GraphQL Course: codedamn.com/learn/graphql-fo...
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Website: machadopedro.com
    Linkedin: / machadop1407
    Instagram: / pedro.fmachado_
    Github: github.com/machadop1407
    Business Email: pedro@pedrotech.co
    🌟 Gear / Hardware I Use and Recommend 🌟
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    💻 amzn.to/42kqFuM 💻 Monitor
    🖱️amzn.to/3C0ZhHb 🖱️ Mouse
    📷 amzn.to/3OHJvbM 📷 My Camera
    🎤 amzn.to/3oxSthj 🎤 My Microphone
    ⌨️ amzn.to/3oFPpj1 ⌨️ My Microphone
    ⚡ amzn.to/3MYMnzM ⚡ LED Lights In the Background
    Tags:
    - ReactJS Tutorial
    - ReactJS and MySQL
    - NodeJS Tutorial
    - API Tutorial
    NEST 13 CHANGES - MARKERS
    00:00 | Intro
    00:59 | Create a NextJS App
    02:48 | TurboPack
    04:52 | Folder Structure
    05:31 | Routing
    10:57 | Layouts
    14:07 | Change with Fetching Data
    32:24 | Server vs. Client Components
    #reactjs #coding
  • Věda a technologie

Komentáře • 172

  • @sanjeevanibhandari5652
    @sanjeevanibhandari5652 Před rokem +47

    The way you make topics effortlessly clear and make everything understandable is truly remarkable.

  • @mohammadidris4481
    @mohammadidris4481 Před rokem +5

    I have watched several tutorials on CZcams about NextJS 13 but no one is more explanatory likes your, ban't wait for the full beginners course. Thank you so much for doing this

  • @dhruvshah8310
    @dhruvshah8310 Před rokem +5

    Wonderful video! Thank you so much for the quick course highlighting the changes, it had been very confusing for me since a long time, but now it's easier to go through the docs and get everything cleared!

  • @luniacllama8373
    @luniacllama8373 Před rokem +24

    found your channel less than a week ago and honestly the only thought I have right now - WHY DIDNT I KNOW YOU BEFORE , lovin the content ! thank you and please keep helping me master full stack dev!

  • @user-zk4uv4jh3k
    @user-zk4uv4jh3k Před rokem +2

    This is so good. I'm sorry for the others but honestly thanks to all of your efforts but it gets boring unlike this one. Very direct to the point. I hope you'll have more of this and specifically dealing with database like CRUD operations. I'm looking forward to learn so much from this.

  • @eshw23
    @eshw23 Před rokem +2

    Amazing much needed video, another thing that blew my mind is, you can develop a really complex app with Nextjs and simply deploy it to Vercel with one click. Usually deploying a React front end, and an Express backend(or any backend framework) is such a painful process.

  • @Jawa332
    @Jawa332 Před rokem +1

    Thanks man, your videos really help me understand stuff.
    it feels like you manage to simplify stuff and make them approchable!
    keep up

  • @eternalmisunderstood6342

    20:21 It actually shows up in the console. Not browser console but in node console in VSC because it's a server-side component. Thanks you a lot.

  • @unhandledexception1948
    @unhandledexception1948 Před 10 měsíci +1

    I find it remarkable is how you have accumulated such deep knowledge of front end development at such a young age :-) great content.

  • @johnedwardubalde3433
    @johnedwardubalde3433 Před 10 měsíci

    Thanks for this! I've been scratching my head numerous times just to understand data fetching in NextJS.
    This is really helpful~

  • @k303k
    @k303k Před rokem +1

    Thank you so much Pedro! This is exactly what we needed!!!

  • @anthonygesora2517
    @anthonygesora2517 Před rokem +1

    I love your approach it has opened out precious concepts when i was a beginner upto now in my intermediade fullstack development 💪🏾💪🏾💪🏾💪🏾

  • @totfosk
    @totfosk Před 11 měsíci +3

    i am wondering how the hell can the other CZcamsrs mess it up so much that this is the first tutorial in which I understand what you are doing all the time (and I have extensive experience already with React). You are good man thanks!!!!!

  • @shaked1233
    @shaked1233 Před rokem

    Super helpful video, everything is clear and concise. you deserve more subs

  • @ryujin2206
    @ryujin2206 Před rokem

    bro how is it you make learning this shit so fucking easy, its so crazy. I wish all my CS professors were like you bro, straight up and I mean that shit from the bottom of my heart. You got a talent for teaching.

  • @refadhile
    @refadhile Před rokem

    always waiting for ur update in next js videos bro, cant wait for the course

  • @user-Chinchu_Ori
    @user-Chinchu_Ori Před rokem +1

    Thanks for all the meaningful information, i was in need for this kind of explanation !!!

  • @Meshv_patel
    @Meshv_patel Před 8 měsíci

    I got your suggestion from my friend that saw all react hooks and I saw that video as well..
    Really, your content of video is amazing...
    Thanks for doing this great things 👍 keep doing...

  • @lovepreetSingh-rx4vz
    @lovepreetSingh-rx4vz Před 7 měsíci

    You are unbelievable brother, you dont know how easy you can make the things other youtuber i dont know why they make fking 5 hours long video for nothing, you are really doing good job 👍 and you

  • @paulocesarabudfilho5309
    @paulocesarabudfilho5309 Před rokem +1

    Oh my god I was LOOKING FOR THIS 😍

  • @parthivsolanki21
    @parthivsolanki21 Před rokem

    One thing i want to said that , I'm currently learning react nd it's libraries nd other technologies , nd you don't believe that i got suggestion of your video and now I subscribed you and watching your golden content..
    Osm explaination 👌👌💥💥

  • @MuneebR7
    @MuneebR7 Před rokem

    You make it so easy to understand everything .

  • @pouyabh
    @pouyabh Před rokem

    Thanks a lot for explaining all aspects of routing too specially the dynamic part

  • @sadique_x_
    @sadique_x_ Před rokem

    i dont think the guy cut the video to read the script... likeeeee. i fully understood every second of what he taught. thanks man!!!

  • @FootballFanzZonee
    @FootballFanzZonee Před rokem +1

    Great job. Hopefully you can find to to create a project with it, your viewers would love it.

  • @appstuff6565
    @appstuff6565 Před 10 měsíci

    Thank you for this Pedro. Loved the explanation esapecially the before and after 13 with app routing and the server & client components.

  • @Igor-nd3nf
    @Igor-nd3nf Před rokem +1

    Tutorial é tão bom que mesmo eu não sabendo inglês, consegui entender

  • @legendaryfootball4222
    @legendaryfootball4222 Před rokem +3

    I'have been waiting 😭😭❤

  • @kashmirtechtv2948
    @kashmirtechtv2948 Před rokem

    The best... Create more videos like this on more practical topics that we should learn if we are jumping from React to Next JS....
    Infact, make a Playlist of that (React to Next Js😊)

  • @coderite_
    @coderite_ Před rokem

    Thanks a lot Pedro. This is awesome

  • @tenr01
    @tenr01 Před rokem

    19:00 starts focusing on the topic of fetching data of numerous endpoints of this Json place holder API. Soooo amazing to see!! I love Next 13

  • @vaibhavkumar8140
    @vaibhavkumar8140 Před rokem +3

    This was the video I was waiting for on Next Js :) I started learning React from your channel and now I am making good progress in Next too, but I wasn't fully aware of the recent update on the next js, I still have some slight doubts, like if I have a server component/page and I have to add a button on it how will I do that?? Can I create a button in the components folder and make it a client component and add all my logic like hooks and event calls, and then import it into the server component? Will this work?? (P.S I love the effort you make in creating all these valuable videos, just wanted to tell you if you can make your course affordable for everyone it would be a nice help :) )

  • @rvileladesigner-renan8694

    Great video bro, bro! Thank you

  • @Codewith0xConcept
    @Codewith0xConcept Před rokem

    Great content. I like the way you explained everything ❤🎉

  • @xGalasko
    @xGalasko Před 11 měsíci

    Fantastic video very concise and great communication. Thank you.

  • @albertoiong6895
    @albertoiong6895 Před rokem

    Many thanks to your video, please keep on teaching us...

  • @Hassanrafique198
    @Hassanrafique198 Před 11 měsíci

    Clear and Concise tutorial. Thanks!

  • @Andrewheinx
    @Andrewheinx Před rokem

    Super clean explanation. Keep it up brother

  • @waifucodes
    @waifucodes Před 11 měsíci

    thank u Pedro! i love your tutorials

  • @lukas.webdev
    @lukas.webdev Před rokem +1

    Great Video! Thanks for sharing. Keep it up! 😉🔥

  • @AlejandroRL868
    @AlejandroRL868 Před rokem +1

    Hello brother, greetings from Cuba, so that you keep in mind, a complete nextjs video, data fetching, authentication and authorization with roles and whatever else you want to add, thanks for everything!

  • @treksis
    @treksis Před rokem

    crystal clear thank you

  • @MayankKumar-yf6bw
    @MayankKumar-yf6bw Před rokem

    Life saver video, Hats Off 🙌

  • @luizinhogm
    @luizinhogm Před rokem

    Bro, thanks a lot for this kind of knowledge! You're amazing!!

  • @Nanashi-rq7lk
    @Nanashi-rq7lk Před rokem

    Thanks for the nice tutorial. I learned a lot.

  • @derarageremu
    @derarageremu Před rokem

    thnks a lot. i haven't word for you keep going bro!!!

  • @mohammadpartovi1813
    @mohammadpartovi1813 Před rokem

    Fantastic tutorial. Thanks for sharing your knowledge.

  • @lscodeschool957
    @lscodeschool957 Před rokem

    Thank you Pedro, this was amazingly clear

  • @erickeft
    @erickeft Před rokem

    thanks a lot Pedro! 👊👊

  • @walterjorgemazzoni
    @walterjorgemazzoni Před rokem +3

    great video, thanks. Usually when you fetch data, end user selects filters, search strings, sort orders, etc. etc. Those components have to be on a client-side in order to work and be able to capture those events. How do you call the fetch (in a server-side component) with the client filters ? Thanks

  • @user-wk7vb6kg1f
    @user-wk7vb6kg1f Před rokem

    From Bangladesh, Your teaching really awesome.Thank you so much

  • @buddhalama4041
    @buddhalama4041 Před 11 měsíci

    I learned so much from this video. Thank you man.

  • @rfryanfavour4369
    @rfryanfavour4369 Před rokem +2

    You deserve an award bro I fr 🎉

  • @edenkefale7129
    @edenkefale7129 Před rokem

    Amazing! Thank You

  • @pinkimandal6842
    @pinkimandal6842 Před 8 měsíci

    your teaching way is good and understandable.

  • @alexpanteli3651
    @alexpanteli3651 Před rokem

    Thanks for this tutorial

  • @anthonygesora2517
    @anthonygesora2517 Před rokem +2

    I love you bro... you've made me learn alot🎉🎉🎉🎉🎉🎉

  • @sonamohialdin3376
    @sonamohialdin3376 Před 11 měsíci

    Very helpful and understandable tutorial thank you

  • @nepalrameshwor1540
    @nepalrameshwor1540 Před rokem

    nice and clear explanation

  • @affangavankar8848
    @affangavankar8848 Před rokem

    Man this guy is wayyyyyy underated, TY very much for this tutiorial

  • @markus-linke
    @markus-linke Před 10 měsíci

    Great video, thanks!

  • @gangaautomobiles3071
    @gangaautomobiles3071 Před rokem

    awesome explanation.. thanks a lot

  • @serveshchaturvedi2034
    @serveshchaturvedi2034 Před rokem +1

    Great video Pedro! A small query, why does the footer not appear at 13:52 on home page, but navbar does..? Keep up the awesome work:)

  • @hashira_d
    @hashira_d Před rokem

    I am in love with your content ❤

  • @delkitonyi
    @delkitonyi Před rokem

    You're always on point.

  • @rashmany
    @rashmany Před 7 měsíci

    I'm speechless, and not hesitate to subscribe to your Chanel

  • @hamzaking127
    @hamzaking127 Před rokem

    Thank you

  • @uicornerwithJ
    @uicornerwithJ Před rokem

    Cool, thanks !

  • @DeepLook1
    @DeepLook1 Před rokem

    thank u sir...

  • @dee.s.4513
    @dee.s.4513 Před 10 měsíci

    Pedro, you need to zoom in on your text. Small text puts pressure on the eyes and tire people. Thanx, and you are doing great.

  • @mmd1dev
    @mmd1dev Před 11 měsíci

    great thank you Pedro😍😍😍😍😍

  • @ThiagoLucioBittencourt
    @ThiagoLucioBittencourt Před 7 měsíci

    Rapaz fora da curva. Novinho e já saca muito do trampo tem excelente inglês. Tá nos 1% de verdade.

  • @interceptorghost1149
    @interceptorghost1149 Před rokem

    about us route is such a funny part😁

  • @BalaBmyprof
    @BalaBmyprof Před rokem +1

    Thanks

  • @solomonmanalili8965
    @solomonmanalili8965 Před rokem

    On the server side fetching example you gave, is it possible to add filters on it?

  • @mengfandy7365
    @mengfandy7365 Před rokem +1

    pedro pedro, i wanna ask, how to render multi data for example
    the first data is just like item data
    and the second data is pagination data
    both are render in the same page
    the second data is need id from the first data.
    the point is, how to both and manage the pagination without rerender the first data?

  • @AE-qj5xi
    @AE-qj5xi Před rokem +2

    Thank you for the video. Nextjs 13 is kinda difficult for me

  • @antalrobert
    @antalrobert Před 3 měsíci

    Hi how you configure the next.config when the api for example is a news api and all the images comes from different domains ?

  • @sabarisabari7114
    @sabarisabari7114 Před rokem

    In this src/app folder structure, can we use context as like we used in getserversideprops method??

  • @aleksandarstanisic1848

    ty man :D

  • @ilhamsa01
    @ilhamsa01 Před rokem

    thanks great video, may i know how to use the state management such as react context in server side component?

  • @bahaaaldein5723
    @bahaaaldein5723 Před rokem

    thanks a lot

  • @christiantimothy4396
    @christiantimothy4396 Před 11 měsíci

    pls i want to ask even if you dont k now the previous Next js, do this video cover both the things i need to know in the previous version of next js?? meanwhile weldon pedro i love you man. plenty love from Nigeria

  • @arhabersham
    @arhabersham Před 11 měsíci

    Why Pedro looks like one of the coolest Backstreet Boys ever, all of a sudden? How long its been I haven't seen this guy? Looking GREAT 😃

  • @novianto2346
    @novianto2346 Před rokem

    How is the implementation of cache if we use Axios to fetch the data?

  • @ahmedezaldean1743
    @ahmedezaldean1743 Před rokem

    man you saved my life

  • @tephrosisOfficial
    @tephrosisOfficial Před 10 měsíci

    Thanks for the clear explanation!
    About the (static) fetching: The strange thing is that when I refreshed, I would get a different dog, wihout altering the code.
    Did they change the default caching?

  • @devdotcode
    @devdotcode Před rokem

    Since data is rendered on the server, do I need to really reload the page so that I will have a fresh data? What is the workaround for this on the client side? Let's say you have a navigation and I want an updated data everytime I go back to that page without reloading. I hope you can answer this, Thank you!

  • @legendaryfootball4222
    @legendaryfootball4222 Před rokem +1

    why is the data from the api not shown in the console when it is console logged but is displayed in the browser when you map through it and render it

  • @RedXtremeHacker
    @RedXtremeHacker Před rokem +2

    hi brother, nice video. Can you make a full stack website using nextjs, prisma, next-auth, postgress, tailwind, typescript. i mean using all the famous technologies that are being used.

  • @kimbapslayer1995
    @kimbapslayer1995 Před rokem

    What’s the next 13 way to generate static paths? I’m getting an vercel deployment error cos my paths are not being generated correctly from my headless cms. I tried refactoring old code and following the docs but it’s not working.

  • @replayzor
    @replayzor Před rokem

    First of all nice job :). Second how can I make in vs/code to see the folders src/app ? Is that an extension or I need to config something ?

  • @mohamedsedahmad585
    @mohamedsedahmad585 Před 10 měsíci

    absolutely legend

  • @imaxle3663
    @imaxle3663 Před 11 měsíci

    is it ideal to create a customhooks to fetch data in NExtJS 13?

  • @mzakysyukur3417
    @mzakysyukur3417 Před rokem

    nice tutorial always

  • @27sosite73
    @27sosite73 Před rokem

    ty mate

  • @parkerrex
    @parkerrex Před rokem

    This video was so fire

  • @Saarim-Salim
    @Saarim-Salim Před 6 měsíci

    please create a video on an intermediate to an advanced level project using nextjs as well, that would help a ton

  • @mohamedmmdoh5918
    @mohamedmmdoh5918 Před 6 měsíci +1

    Great video pedro , but i have question why you removed the console in the 20:26 and replaced it with a list of Users instead ??

  • @nehatiwari5211
    @nehatiwari5211 Před 8 měsíci

    Really Good Video !! Thank you so much. Am looking for video on SEO with Nextjs 13.. wud appreciate so much if u make one for it, if u havnt already.