the most important Next.js features to learn (in 8 minutes)

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 228

  • @josh.manders
    @josh.manders 7 місяців тому +188

    Little fun VSCode Explorer file creation tip: Instead of "create folder" and enter "users" then right click that and "create file" to create page.tsx, you can just select "create file" then type the full path such as "users/page.tsx" and VSCode will automatically create the folder if it doesn't already exist, as deep as you make the path.

    • @WebDevCody
      @WebDevCody  7 місяців тому +25

      thanks man! I have done that before but I always forget about it

    • @dvillegaspro
      @dvillegaspro 7 місяців тому +3

      Even better just do it all with the `touch` command from the terminal :D

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

      @@dvillegaspronah, you’ll have to cd into subfolders if it needs be, another stupid step most of the time.

    • @dvillegaspro
      @dvillegaspro 7 місяців тому +2

      @@nikmat you can just write out the full path, which is why I was mostly kidding hehe

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

      ​@@dvillegasprotouch cli is not present in Windows devices by default

  • @TiriasCZ
    @TiriasCZ 7 місяців тому +38

    This type of content is great. I haven't looked into Next.js for a while and this video showed me in 8 minutes something that I would have had to study for an hour from the documentation.

  • @alonsoalarconaguilar7113
    @alonsoalarconaguilar7113 7 місяців тому +53

    1 hour worth content resumed in less than 10 minutes, thanks Cody!!!

  • @wlockuz4467
    @wlockuz4467 7 місяців тому +8

    This is exactly how I love to learn something. Just get my hands dirty, try to make it work, make assumptions. When those assumptions don't work you learn something in a way you never forget.
    Obviously its not for everyone, but those who enjoy exploratory learning its the best feeling.

  • @waleedaamer8316
    @waleedaamer8316 7 місяців тому +31

    Coming from like 2 beginner NextJS tutorials, this has some how taught me more then 4 hours of UA-cam

    • @DanielArnolf
      @DanielArnolf 6 місяців тому +10

      Probably, but your understanding is now already influenced by your other tutorials, things build up even when you still don't know what's relevant.

  • @AVidhanR
    @AVidhanR 3 місяці тому +3

    This is huge time saving man, please upload these type of videos so that one can skim through whenever we forget things 😅

  • @discoRyne
    @discoRyne 7 місяців тому +4

    Appreciate the compressed flow to this upload.

  • @sole008
    @sole008 7 місяців тому +40

    that was awesome, its actually way to short, you should do a playlist where you cover all the typical workflow with the best practices to follow. sorry about for the typos English is not my first language.

    • @WebDevCody
      @WebDevCody  7 місяців тому +8

      yeah that's a good idea

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

      @@WebDevCody that would be amazing! you will have gave out raw experience that is very difficult to get from just browsing google

  • @grandpowr
    @grandpowr 7 місяців тому +3

    These short type of videos are really good, keep at them!

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

    First 10 seconds made me watch whole video 🤣
    love your content, quick and simple, you're the best, Cody !

  • @null_spacex
    @null_spacex 7 місяців тому +50

    Me watching you do things I do every single day: 👁️👄👁️

  • @WebDevCody
    @WebDevCody  7 місяців тому +40

    btw, I know y'all will call me out on that form reset hack, here is a proper solution
    useEffect(() => {
    if (state.message === "success") {
    formRef.current?.reset();
    }
    }, [state]);

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

      This is a great solution but an even better one would be to just have an if block in the render scope of the functional component you don't have to wait for the next render.

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

      this is terrible. this is outdated code for a while now. stop propagating this nonsense!

    • @cryptoslav7882
      @cryptoslav7882 17 днів тому

      @@micbln8967 Love it when someone complains about "propagating nonsense" and then not providing their own "superior" approach

  • @Emperorll
    @Emperorll 7 місяців тому +2

    Awesome! Yes please, more of these compact learn next.js features. It's simple, fast and concise, great to focus and retain information.

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

    this is the type of content that developers with knowledge on a different framework/library need in order to learn Nextjs quickly. Thanks

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

    This is great! I already know this stuff, but having content that summarizes all of it really well helps me a lot!

  • @yt-sh
    @yt-sh 5 місяців тому +3

    These concepts are mixed...
    0:00 - Init and routing
    1:03 - Data fetching via api routes
    2:10 - Data storing via Server components
    3:35 - form
    6:26 - form status
    These concepts are mixed so watch the short video to get full context / clarity...

  • @NizzyABI
    @NizzyABI 7 місяців тому +6

    This made my day

    • @WebDevCody
      @WebDevCody  7 місяців тому +5

      🤣 my first membership video with 10 minute pre-release access

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

    Rly enjoyed the video. Maybe it was too short (or too fast,wtv), but very useful ! Hope to see more like this explaining best practices, typical workflow, and most common things to do (already covered fetch, maybe some CRUD and state management on Next)

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

    As somebody who has a large page router nextjs app, it’s great to get an overview of all the new stuff. Though there are so many breaking changes and issues, I probably never migrate 😂

  • @yt-sh
    @yt-sh 5 місяців тому

    this was one of the concise video regarding nextjs's actions with good practices
    clarity helps memorisation
    thank you!

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

    I love this. Please more of this type of super fast digestible video.

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

    This one single video solved a lots of mysteries of myself, thanks a bunch

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

    the value that you gave us is just amazing

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

    like how you simplify the path for new developers who are coming to learn nextjs. speacially who are coming from react and don't about the difference between 'use client' and 'use server'.If I was a beginner and don't know much about nextjs this video will help me out a lot and this will let me know what the concepts should focus more about.Can you do more videos like this in the future this will help us a lot, maybe you can do a prisma video and connect it to a nextjs project .

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

    this was amazing keep it up bro, i feel like i just upgraded from next.js 13 > 14

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

    Thanks, just what I was looking for to understand how build classic CRUD thing in Next.js

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

    Only thing more satisfying than this video was the clackity-clack of that smooth as butter keyboard

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

    Glad I found your channel. Thanks for the great content!

  • @dr.lazysloth3415
    @dr.lazysloth3415 7 місяців тому

    Quick and simple content to learn or refresh knowledge. Great teacher 🙂

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

    Great job, bro! I really liked this concept of delivering information in a very short period of time. One thing I need to ask: can you also create a playlist where each video provides information and guidelines on topics ranging from creating a structure to following patterns, implementing authentication and authorization, using Next.js API routes or server actions, or custom backends like NestJS with Docker and Kubernetes, or managed services like Supabase and Convex for large-scale production applications? That would be awesome.
    Please note: I am talking about big production-grade applications.

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

      If I get time yeah

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

      @@WebDevCody supabase vid with nextjs would be great

  • @SO-vq7qd
    @SO-vq7qd 3 місяці тому

    That was the best intro ever 😂 thank you

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

    Love this concise way of teaching. Great content. Thank you.

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

    Great video! I love working with Nuxt

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

    +1 for this format of video!

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

    Thanks, easy to understand. Do one with Nuxt or Svelte

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

    Quick and sweet
    Keep going brother

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

    Really great and informative video! Love to see more like this.

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

    Great video, loved the format!

  • @junsgk
    @junsgk 7 місяців тому +2

    What keyboard r u using??? Sounds great

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

    These small bits are really helpful! Can you also add some pagination techniques and how to handle them whence fetching records from DB/Api calls

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

    bro the keyboard sounds so good.

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

    Great video, huge benefit. Thank you.

  • @sunnysetia
    @sunnysetia 7 місяців тому +2

    Which keyboard and keys do you have? Sounds good Cody!

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

      i don't think that is his keyboards actual sound. Most likely Mechvibes for the video.

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

      it's a mac app called Klack.

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

    Great video!! Keep these videos coming.

  • @theodordumitrache-z7d
    @theodordumitrache-z7d 7 місяців тому +1

    Hi Cody, how would you start learning Next JS if you would decide to do it RIGHT NOW? Maybe starting from their tutorial from their website first? I see you have a course on your website as well, but it's not updated to Next JS v.15

    • @yassine-sa
      @yassine-sa 7 місяців тому

      Next 15 is not stable yet, they're waiting for react 19 to be stable, and I don't think Cody would start using next 15 right away, from what I know he prefers to wait just to be sure there are no gotchas, and I agree

    • @theodordumitrache-z7d
      @theodordumitrache-z7d 7 місяців тому

      At least Next v.14, I mean the latest stable version

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

      I learn stuff by building small projects. So I'd just try building something, read the docs a bit, read their tutorial a bit, watch other youtubers a bit. my learning path is usually all over the place which works best for me. Exposure to as much as possible from different people is what helps shape my knowledge.

    • @theodordumitrache-z7d
      @theodordumitrache-z7d 7 місяців тому

      @@WebDevCody Thank you sir, you’re the best youtuber for advanced React / Web Dev concepts overall. Wanted to let you know

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

    Good content! perfect pace 👍

  • @eSeMGie
    @eSeMGie 5 місяців тому +2

    What's the name of the plugin which shows you error prompt next to the line where that error occured?

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

    This is ace and makes me depressed that I use angular at work lol
    Also what keyboard do you use? Sounds amazing!

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

    in react 19 the useFormState is named useActionState and inside it also exists a isPending that you can use instead of using the useFormState and also making the button a seperate component

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

      Yup, but react 19 is RC still, so I’m not going to teach it

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

    This is so perfect. I shared it with my team saying "Chuck Williams, [2024-06-28 10:49]
    Watch this 3 times on double speed. I learned 3 very important things in the first 3 minutes.... so 1.5 minutes. ua-cam.com/video/LkDelp5WWYU/v-deo.html
    Chuck Williams, [2024-06-28 10:51]
    This is all NEXTJS capability. we get ALL of this - WITHOUT CONVEX
    Chuck Williams, [2024-06-28 11:10]
    @ Minute 1:08 - that's the page where we integrate convex."

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

    I think you mentioned the drawback to this method one time which is that since the form validation occurs on the server, if a user has a very slow connection and they enter in a value on the form, it would take a long time to show the error. Moreover, the input validation can't be "live" in this case right? I think it would have been good to note this in the video

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

      yeah, as I stated at the start of the video, I was aiming for 5 minutes, but got to 8. I can't talk about everything if I want to keep the video short.

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

    Great video. When do you find yourself reaching for route handlers. Do you typically use them anytime you're fetching data from a client component? Would you ever use one to mutate data over a server action? Any gotchas I should be aware of?

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

      I’m not sure why you mean by reaching for route handlers

  • @mamad-dev
    @mamad-dev 7 місяців тому

    that was actually fast, awesome

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

    Cody, what do you think, are the concerns regarding deployment issues for Next.js justified?

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

    love your vids dude keep them coming

  • @DevChannel-b4i
    @DevChannel-b4i 6 місяців тому

    Thanks for the video, may I ask you what vs code theme you're using? And also what keyboard you're using?

    • @WebDevCody
      @WebDevCody  6 місяців тому +1

      Bearded themed stained blue and klack. App

    • @DevChannel-b4i
      @DevChannel-b4i 6 місяців тому

      Ok, thanks

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

    Hello, thanks for your content! Whats the extension to make the keys has sound?

  • @fullstackspiderman
    @fullstackspiderman 3 місяці тому +1

    Looks like we don't need tanstack's react-query anymore?

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

    Great stuff, picked up a few tips, twice as long please!

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

    Thanks a lot for this video it's cool to watch ! Do you use copilot for code completion or another AI ?

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

      yes copilot

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

      ​@@WebDevCody thanks a lot ! I tried it when it was free (and probably not that good) and didn't find it interesting at all. Do you think it's a really good tool or just some gadget ?

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

      @@captainnoyaux codium is a great free alternative to copilot

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

      @@captainnoyaux Copilot is pretty good, but it seems that there are now alternatives that are free and equally as good. There’s at least one for which you can download the LLM and run it locally.

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

      ​@@Innesbwhat'd you recommend ?

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

    Hey can I ask what vscode extension you are using that displays the warnings/errors inline like that as you code? (not referring to the autofill from copilot)

  • @lordpain007
    @lordpain007 6 місяців тому +1

    im becoming a next js addict .. its getting out of my hand .. this stuff is good

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

    The algo needs to step up its game. this should be the first video when anyone looks for "Next JS"

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

    Currently have a next 12 side project, ive been avoiding upgrading next to all this app and “use server” stuff.

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

    Thank you for this!

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

    what is your keyboard? Sounds amazing.

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

    Cheers for the video! I am coming from remix and trying out next for the first time. I get an error when installing a fresh create-next-app on my D:/ drive when I run npm run dev? It works fine on my C:/ drive however. I think it could be a webpack issue. Have you ever ran into anything like this before?

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

    Love your videos. What VSCode Theme do you use ?

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

    Really good content. I appreciate it. It is very helpful. What VSCode theme are you using? I like it a lot :)

  • @luan123z
    @luan123z 16 днів тому

    Which plugin you are using for inline code error checking?

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

    How does something updateNameAction.bind(null, user.id) work, wouldn't the second argument of the newly bound function be a form submit event instead of formData?

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

      It attaches the arguments to the function and returns a new function so it’s almost like it pops off the first argument of your function and already pre defines it

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

      developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#partially_applied_functions

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

    this tutorial is amazing

  • @lukor-tech
    @lukor-tech 7 місяців тому +1

    What the keyboard ⌨️ xD
    I think the mic is tad bit too close to it ;)

    • @lukor-tech
      @lukor-tech 7 місяців тому

      Otherwise great vid!

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

      Klack.app I can turn it down

    • @lukor-tech
      @lukor-tech 7 місяців тому

      @@WebDevCody I'd welcome that change, like 20% would be plenty!

  • @SulagnoGhosh
    @SulagnoGhosh 7 місяців тому +2

    legit running a team right now with a bunch of interns and I redirected them to your video...I was like this is a very quick intro or a revision and then make question ask chatgpt or something figure it out and then come to me
    THANKS

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

    hey quick question how are you able to make prettier format like that after a delay I tried everything it seems that if I paste something in it formats it corretly but when I change the settings to format on save it does not work

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

    Can show the best way to handle loading when submiting data without useForm Hook. Do we use the tradional react way of defining a loading state and settting it to true and false before and after server action fn call.

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

    Excellent video

  • @Jake-ti9ti
    @Jake-ti9ti 2 місяці тому

    What theme are you using?

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

    how do we initialize form in next js. I'm building edit form and will need to initialize the form on first load but having trouble to do it. Can you please teach how to do that

  • @Dalamain
    @Dalamain 7 місяців тому +10

    who else is loving hearing the keystrokes

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

      Wonder what keyboard/switches are those

  • @musvc
    @musvc 3 місяці тому +5

    This is very complicated to just be able to submit and get basic data

  • @rahathossain3370
    @rahathossain3370 3 місяці тому +1

    What’s the vscode color scheme in the tumbnail anyone know ?

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

    which better ? iam using react hook form to handle form submission and i am using function in server action file!

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

    What keyboard are you using ?😂 (sounds great)

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

      The keyboard clicks are coming from an app that simulates key press sounds.

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

      Klack.app

  • @Noam-Bahar
    @Noam-Bahar 7 місяців тому

    Great video!!

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

    what is the "2o" "148k" etc.. in Nextjs Developer Tools browser extension? How to enable it on my website

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

    What keyboard are you using?

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

    Everyone at my work is so against this monorepo style of Next.js and we use a lot of React Native so I've been only been writing regular React, I miss it so much

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

      everything in one project makes life simple in some aspects

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

    Is it good or bad that the structure is still /pages and .js files?

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

      I mean I personally would just use the app router. I also stopped using javascript a long time ago

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

      /app router is newer than /pages router.
      Never use .js instead of .ts

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

      @@thejonte i'm a newbie dev working on a first big project. should i change everyhting away from js then? is it a safety risk?

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

      @@WebDevCody i used then too old repo as a base :( I'm neck deep on this already, but should i start over?

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

    Where was this video 2 weeks ago when i did a 3 day dive into this madness
    As an iOS dev I dont like frontend omg, you guys are crazy string coders😅

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

    What keyboard do you use ?

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

    keep em coming

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

    thocky keeb you got there

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

    Great video.

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

    The first step should absolutely be to read the docs😊

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

    Hello this is not relate to next.js at all but can you tell me the name of vscode theme that you're using please?
    Edit: for anyone also wondering it's bearded theme - stained blue.

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

    Which theme he is using ?

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

      Bearded theme stained blue

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

    Excellent 👍

  • @jawyor-k3t
    @jawyor-k3t 4 місяці тому

    the fact that I have to extract out buttons for pending hook to work is such a pain my god

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

    Lightening speed!