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

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии • 226

  • @josh.manders
    @josh.manders 6 месяцев назад +166

    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  6 месяцев назад +25

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

    • @dvillegaspro
      @dvillegaspro 6 месяцев назад +3

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

    • @nikmat
      @nikmat 6 месяцев назад +1

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

    • @dvillegaspro
      @dvillegaspro 6 месяцев назад +2

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

    • @super_kenil
      @super_kenil 3 месяца назад

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

  • @alonsoalarconaguilar7113
    @alonsoalarconaguilar7113 6 месяцев назад +50

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

  • @TiriasCZ
    @TiriasCZ 6 месяцев назад +37

    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.

  • @AVidhanR
    @AVidhanR 2 месяца назад +3

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

  • @waleedaamer8316
    @waleedaamer8316 6 месяцев назад +30

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

    • @DanielArnolf
      @DanielArnolf 5 месяцев назад +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.

  • @wlockuz4467
    @wlockuz4467 6 месяцев назад +7

    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.

  • @WebDevCody
    @WebDevCody  6 месяцев назад +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 6 месяцев назад +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 Месяц назад

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

  • @sole008
    @sole008 6 месяцев назад +38

    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  6 месяцев назад +8

      yeah that's a good idea

    • @ahmedsenousy01
      @ahmedsenousy01 6 месяцев назад

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

  • @grandpowr
    @grandpowr 6 месяцев назад +3

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

  • @starlordjs
    @starlordjs 6 месяцев назад +1

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

  • @discoRyne
    @discoRyne 6 месяцев назад +4

    Appreciate the compressed flow to this upload.

  • @yt-sh
    @yt-sh 3 месяца назад +2

    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...

  • @null_spacex
    @null_spacex 6 месяцев назад +50

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

  • @blink11101
    @blink11101 5 месяцев назад

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

  • @Emperorll
    @Emperorll 6 месяцев назад +2

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

  • @boyo_23
    @boyo_23 6 месяцев назад

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

  • @smokinjoe3000
    @smokinjoe3000 9 дней назад

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

  • @yt-sh
    @yt-sh 4 месяца назад

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

  • @super_kenil
    @super_kenil 3 месяца назад

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

  • @Wodziwob
    @Wodziwob 5 месяцев назад

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

  • @lucasolivero1949
    @lucasolivero1949 5 месяцев назад

    the value that you gave us is just amazing

  • @didjeycs
    @didjeycs 6 месяцев назад

    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)

  • @kerrykreiter445
    @kerrykreiter445 3 месяца назад

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

  • @laurentperroteau632
    @laurentperroteau632 6 месяцев назад

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

  • @0xAquaWolf
    @0xAquaWolf 4 месяца назад

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

  • @NizzyABI
    @NizzyABI 6 месяцев назад +6

    This made my day

    • @WebDevCody
      @WebDevCody  6 месяцев назад +5

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

  • @eSeMGie
    @eSeMGie 3 месяца назад +2

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

  • @fvbixn
    @fvbixn 6 месяцев назад

    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 😂

  • @dr.lazysloth3415
    @dr.lazysloth3415 6 месяцев назад

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

  • @SO-vq7qd
    @SO-vq7qd 2 месяца назад

    That was the best intro ever 😂 thank you

  • @alifwibowo8724
    @alifwibowo8724 21 день назад

    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

  • @matteobagni1235
    @matteobagni1235 6 месяцев назад

    Great video! I love working with Nuxt

  • @alasassi960
    @alasassi960 6 месяцев назад

    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 .

  • @colinswancs
    @colinswancs 6 месяцев назад

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

  • @junsgk
    @junsgk 6 месяцев назад +1

    What keyboard r u using??? Sounds great

  • @juanspada4852
    @juanspada4852 5 месяцев назад

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

  • @matheusvictor9629
    @matheusvictor9629 Месяц назад

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

  • @mohammadalaaelghamry8010
    @mohammadalaaelghamry8010 2 месяца назад

    Great video, huge benefit. Thank you.

  • @theodordumitrache-z7d
    @theodordumitrache-z7d 6 месяцев назад +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 6 месяцев назад

      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 6 месяцев назад

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

    • @WebDevCody
      @WebDevCody  6 месяцев назад +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 6 месяцев назад

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

  • @nicolasramos7084
    @nicolasramos7084 6 месяцев назад

    Great video, loved the format!

  • @amershboul9107
    @amershboul9107 6 месяцев назад

    Quick and sweet
    Keep going brother

  • @sunnysetia
    @sunnysetia 6 месяцев назад +2

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

    • @AhmadMughal1
      @AhmadMughal1 6 месяцев назад

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

    • @trevortylerlee
      @trevortylerlee 6 месяцев назад

      it's a mac app called Klack.

  • @orionRuse
    @orionRuse 3 месяца назад

    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.

  • @manjyotkalkat4513
    @manjyotkalkat4513 6 месяцев назад

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

  • @JoeMcBroom
    @JoeMcBroom Месяц назад

    +1 for this format of video!

  • @davidk3133
    @davidk3133 Месяц назад

    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)

  • @rahathossain3370
    @rahathossain3370 2 месяца назад +1

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

  • @thespiritninja11
    @thespiritninja11 6 месяцев назад

    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

  • @usamabilal3798
    @usamabilal3798 6 месяцев назад

    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  6 месяцев назад +1

      If I get time yeah

    • @kurwacherry
      @kurwacherry 6 месяцев назад

      @@WebDevCody supabase vid with nextjs would be great

  • @musvc
    @musvc 2 месяца назад +5

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

  • @qhkmdev
    @qhkmdev 6 месяцев назад

    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

  • @jazzmaster89
    @jazzmaster89 6 месяцев назад

    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  6 месяцев назад

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

  • @gmoniava
    @gmoniava 8 дней назад

    At the end when you are resetting form ref in render that is not best practice imho, because it is side effect during render.

  • @nsrez2687
    @nsrez2687 6 месяцев назад +1

    bro the keyboard sounds so good.

  • @harisanker1000
    @harisanker1000 5 месяцев назад

    Great video!! Keep these videos coming.

  • @WaultBank
    @WaultBank 4 месяца назад

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

  • @Jake-ti9ti
    @Jake-ti9ti Месяц назад

    What theme are you using?

  • @ComfyCosi
    @ComfyCosi 6 месяцев назад

    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  6 месяцев назад

      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 4 месяца назад

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

  • @fullstackspiderman
    @fullstackspiderman 2 месяца назад +1

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

  • @TheNakidNinja
    @TheNakidNinja 6 месяцев назад

    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?

  • @waeltarabishi6890
    @waeltarabishi6890 6 месяцев назад

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

  • @williamx0
    @williamx0 6 месяцев назад

    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  6 месяцев назад

      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.

  • @DevChannel-b4i
    @DevChannel-b4i 5 месяцев назад

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

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      Bearded themed stained blue and klack. App

    • @DevChannel-b4i
      @DevChannel-b4i 5 месяцев назад

      Ok, thanks

  • @valtonsejdiu4561
    @valtonsejdiu4561 6 месяцев назад

    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  6 месяцев назад

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

  • @herashak
    @herashak 12 дней назад

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

  • @MohammadJunaid96
    @MohammadJunaid96 6 месяцев назад

    Good content! perfect pace 👍

  • @chuckwilliams4569
    @chuckwilliams4569 6 месяцев назад

    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. ruclips.net/video/LkDelp5WWYU/видео.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."

  • @metaxenology9865
    @metaxenology9865 21 день назад

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

  • @AvisekDas
    @AvisekDas 6 месяцев назад

    Love your videos. What VSCode Theme do you use ?

  • @captainnoyaux
    @captainnoyaux 6 месяцев назад

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

    • @WebDevCody
      @WebDevCody  6 месяцев назад +1

      yes copilot

    • @captainnoyaux
      @captainnoyaux 6 месяцев назад

      ​@@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 6 месяцев назад

      @@captainnoyaux codium is a great free alternative to copilot

    • @Innesb
      @Innesb 6 месяцев назад

      @@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 6 месяцев назад

      ​@@Innesbwhat'd you recommend ?

  • @SulagnoGhosh
    @SulagnoGhosh 6 месяцев назад +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

  • @lordpain007
    @lordpain007 5 месяцев назад +1

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

  • @eaglebirdiepar
    @eaglebirdiepar 6 месяцев назад

    what is your keyboard? Sounds amazing.

  • @jurgensen_eth
    @jurgensen_eth 6 месяцев назад

    love your vids dude keep them coming

  • @jareksliz6711
    @jareksliz6711 6 месяцев назад

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

  • @JoshIbbotson
    @JoshIbbotson 6 месяцев назад

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

  • @VincentFulco
    @VincentFulco 6 месяцев назад

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

  • @marcialabrahantes3369
    @marcialabrahantes3369 4 месяца назад

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

  • @mamad-dev
    @mamad-dev 6 месяцев назад

    that was actually fast, awesome

  • @lukor-tech
    @lukor-tech 6 месяцев назад +1

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

    • @lukor-tech
      @lukor-tech 6 месяцев назад

      Otherwise great vid!

    • @WebDevCody
      @WebDevCody  6 месяцев назад +1

      Klack.app I can turn it down

    • @lukor-tech
      @lukor-tech 6 месяцев назад

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

  • @selcukglr
    @selcukglr 5 месяцев назад

    what is your keyboard model?

    • @WebDevCody
      @WebDevCody  5 месяцев назад +1

      Klack.app cream switches

    • @selcukglr
      @selcukglr 5 месяцев назад

      @@WebDevCody thank you.

  • @mundo00
    @mundo00 5 месяцев назад

    this tutorial is amazing

  • @rem2592
    @rem2592 6 месяцев назад

    What keyboard are you using?

  • @andrewbunea765
    @andrewbunea765 6 месяцев назад

    Thank you for this!

  • @digidope
    @digidope 6 месяцев назад

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

    • @WebDevCody
      @WebDevCody  6 месяцев назад

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

    • @thejonte
      @thejonte 6 месяцев назад

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

    • @digidope
      @digidope 6 месяцев назад

      @@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 6 месяцев назад

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

  • @sameneko8979
    @sameneko8979 6 месяцев назад

    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.

  • @slahomar1497
    @slahomar1497 6 месяцев назад

    What keyboard do you use ?

  • @denisblack9897
    @denisblack9897 6 месяцев назад +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😅

  • @entrepreneurcoder2659
    @entrepreneurcoder2659 5 месяцев назад

    Which theme he is using ?

    • @WebDevCody
      @WebDevCody  5 месяцев назад

      Bearded theme stained blue

  • @zayne-sarutobi
    @zayne-sarutobi 6 месяцев назад

    Theme?

    • @WebDevCody
      @WebDevCody  6 месяцев назад

      Bearded theme stain blue

  • @sebastianmocanu6399
    @sebastianmocanu6399 6 месяцев назад

    What keyboard are you using ?😂 (sounds great)

    • @Innesb
      @Innesb 6 месяцев назад

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

    • @WebDevCody
      @WebDevCody  6 месяцев назад

      Klack.app

  • @outis99
    @outis99 6 месяцев назад

    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  6 месяцев назад

      everything in one project makes life simple in some aspects

  • @treyjapan
    @treyjapan 6 месяцев назад

    Excellent video

  • @Dalamain
    @Dalamain 6 месяцев назад +10

    who else is loving hearing the keystrokes

    • @HeinekenLasse
      @HeinekenLasse 6 месяцев назад

      Wonder what keyboard/switches are those

  • @RiteshNEVERUNIFORM
    @RiteshNEVERUNIFORM 6 месяцев назад

    Which theme is this??

  • @austincodes
    @austincodes 6 месяцев назад

    The first step should absolutely be to read the docs😊

  • @akashkarnatak6581
    @akashkarnatak6581 6 месяцев назад +1

    coming from react, this feels like a different language to me

  • @SumTsuiTechie
    @SumTsuiTechie 19 часов назад

    thocky keeb you got there

  • @jawyor-k3t
    @jawyor-k3t 3 месяца назад

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

  • @ganeshram580
    @ganeshram580 2 месяца назад

    Lightening speed!