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

  Рет қаралды 21,862

Web Dev Cody

Web Dev Cody

8 күн бұрын

Become a YT Members to get extra perks!
/ @webdevcody
My Products
🏗️ WDC StarterKit: wdcstarterkit.com
📖 ProjectPlannerAI: projectplannerai.com
🤖 IconGeneratorAI: icongeneratorai.com
Useful Links
💬 Discord: / discord
🔔 Newsletter: newsletter.webdevcody.com/
📁 GitHub: github.com/webdevcody
📺 Twitch: / webdevcody
🤖 Website: webdevcody.com
🐦 Twitter: / webdevcody

Пікірлер: 149
@josh.manders
@josh.manders 6 күн бұрын
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 күн бұрын
thanks man! I have done that before but I always forget about it
@dvillegaspro
@dvillegaspro 6 күн бұрын
Even better just do it all with the `touch` command from the terminal :D
@nikmat
@nikmat 6 күн бұрын
@@dvillegaspronah, you’ll have to cd into subfolders if it needs be, another stupid step most of the time.
@dvillegaspro
@dvillegaspro 6 күн бұрын
@@nikmat you can just write out the full path, which is why I was mostly kidding hehe
@waleedaamer8316
@waleedaamer8316 4 күн бұрын
Coming from like 2 beginner NextJS tutorials, this has some how taught me more then 4 hours of KZfaq
@alonsoalarconaguilar7113
@alonsoalarconaguilar7113 5 күн бұрын
1 hour worth content resumed in less than 10 minutes, thanks Cody!!!
@sole008
@sole008 6 күн бұрын
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 күн бұрын
yeah that's a good idea
@ahmedsenousy6734
@ahmedsenousy6734 6 күн бұрын
@@WebDevCody that would be amazing! you will have gave out raw experience that is very difficult to get from just browsing google
@TiriasCZ
@TiriasCZ 6 күн бұрын
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.
@wlockuz4467
@wlockuz4467 5 күн бұрын
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 күн бұрын
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]);
@Daddyjs
@Daddyjs 6 күн бұрын
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.
@null_spacex
@null_spacex 6 күн бұрын
Me watching you do things I do every single day: 👁️👄👁️
@discoRyne
@discoRyne 6 күн бұрын
Appreciate the compressed flow to this upload.
@starlordjs
@starlordjs 2 күн бұрын
First 10 seconds made me watch whole video 🤣 love your content, quick and simple, you're the best, Cody !
@grandpowr
@grandpowr 6 күн бұрын
These short type of videos are really good, keep at them!
@Emperorll
@Emperorll 6 күн бұрын
Awesome! Yes please, more of these compact learn next.js features. It's simple, fast and concise, great to focus and retain information.
@NizzyABI
@NizzyABI 6 күн бұрын
This made my day
@WebDevCody
@WebDevCody 6 күн бұрын
🤣 my first membership video with 10 minute pre-release access
@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!
@laurentperroteau632
@laurentperroteau632 5 күн бұрын
Thanks, just what I was looking for to understand how build classic CRUD thing in Next.js
@colinswancs
@colinswancs 6 күн бұрын
Love this concise way of teaching. Great content. Thank you.
@matteobagni1235
@matteobagni1235 4 күн бұрын
Great video! I love working with Nuxt
@amershboul9107
@amershboul9107 6 күн бұрын
Quick and sweet Keep going brother
@dalar2
@dalar2 6 күн бұрын
who else is loving hearing the keystrokes
@HeinekenLasse
@HeinekenLasse 5 күн бұрын
Wonder what keyboard/switches are those
@nsrez2687
@nsrez2687 5 күн бұрын
bro the keyboard sounds so good.
@dr.lazysloth3415
@dr.lazysloth3415 5 күн бұрын
Quick and simple content to learn or refresh knowledge. Great teacher 🙂
@chuckwilliams4569
@chuckwilliams4569 3 күн бұрын
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. kzfaq.info/get/bejne/gtF0mM-hmr27iYk.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."
@nicolasramos7084
@nicolasramos7084 5 күн бұрын
Great video, loved the format!
@manjyotkalkat4513
@manjyotkalkat4513 6 күн бұрын
Really great and informative video! Love to see more like this.
@alasassi960
@alasassi960 5 күн бұрын
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 .
@fvbixn
@fvbixn 5 күн бұрын
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 😂
@MohammadJunaid96
@MohammadJunaid96 5 күн бұрын
Good content! perfect pace 👍
@jurgensen_eth2970
@jurgensen_eth2970 6 күн бұрын
love your vids dude keep them coming
@andrewbunea765
@andrewbunea765 6 күн бұрын
Thank you for this!
@thespiritninja11
@thespiritninja11 4 күн бұрын
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
@treyjapan
@treyjapan 5 күн бұрын
Excellent video
@mamad-dev
@mamad-dev 6 күн бұрын
that was actually fast, awesome
@Noam-Bahar
@Noam-Bahar 6 күн бұрын
Great video!!
@AvisekDas
@AvisekDas 5 күн бұрын
Love your videos. What VSCode Theme do you use ?
@junsgk
@junsgk 5 күн бұрын
What keyboard r u using??? Sounds great
@eaglebirdiepar
@eaglebirdiepar 2 күн бұрын
what is your keyboard? Sounds amazing.
@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 5 күн бұрын
I’m not sure why you mean by reaching for route handlers
@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?
@VincentFulco
@VincentFulco 6 күн бұрын
Great stuff, picked up a few tips, twice as long please!
@jareksliz6711
@jareksliz6711 5 күн бұрын
Really good content. I appreciate it. It is very helpful. What VSCode theme are you using? I like it a lot :)
@nulljeroka
@nulljeroka 6 күн бұрын
Great video.
@khaledBreaker
@khaledBreaker 5 күн бұрын
keep em coming
@valtonsejdiu4561
@valtonsejdiu4561 5 күн бұрын
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 5 күн бұрын
Yup, but react 19 is RC still, so I’m not going to teach it
@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 күн бұрын
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 5 күн бұрын
​@@Innesbwhat'd you recommend ?
@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 күн бұрын
If I get time yeah
@kurwacherry
@kurwacherry 6 күн бұрын
@@WebDevCody supabase vid with nextjs would be great
@waeltarabishi6890
@waeltarabishi6890 5 күн бұрын
which better ? iam using react hook form to handle form submission and i am using function in server action file!
@fabianpetersen2452
@fabianpetersen2452 4 күн бұрын
Excellent 👍
@SulagnoGhosh
@SulagnoGhosh 6 күн бұрын
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
@hb50777
@hb50777 6 күн бұрын
So cool man 😎
@JoshIbbotson
@JoshIbbotson 5 күн бұрын
This is ace and makes me depressed that I use angular at work lol Also what keyboard do you use? Sounds amazing!
@sunnysetia
@sunnysetia 6 күн бұрын
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.
@CodingWithDilip
@CodingWithDilip 6 күн бұрын
awesome 👍
@rem2592
@rem2592 6 күн бұрын
What keyboard are you using?
@qhkmdev
@qhkmdev 3 күн бұрын
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
@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 5 күн бұрын
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
@theodordumitrache6055
@theodordumitrache6055 6 күн бұрын
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
@yassinesafraoui
@yassinesafraoui 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
@theodordumitrache6055
@theodordumitrache6055 6 күн бұрын
At least Next v.14, I mean the latest stable version
@WebDevCody
@WebDevCody 6 күн бұрын
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.
@theodordumitrache6055
@theodordumitrache6055 6 күн бұрын
@@WebDevCody Thank you sir, you’re the best youtuber for advanced React / Web Dev concepts overall. Wanted to let you know
@adarsh-chakraborty
@adarsh-chakraborty 6 күн бұрын
Thanks
@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.
@raphauy
@raphauy 6 күн бұрын
Awesome
@clearlyunwell
@clearlyunwell 6 күн бұрын
Perfect.
@austincodes
@austincodes 6 күн бұрын
The first step should absolutely be to read the docs😊
@Mnogarithm
@Mnogarithm 5 күн бұрын
Love this channel! Does anyone know of some other good channels in a similar space? In particular those that focus on SaaS development and walk through the day-to-day and technical details of running one.
@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 5 күн бұрын
Klack.app
@lukor-tech
@lukor-tech 5 күн бұрын
What the keyboard ⌨️ xD I think the mic is tad bit too close to it ;)
@lukor-tech
@lukor-tech 5 күн бұрын
Otherwise great vid!
@WebDevCody
@WebDevCody 5 күн бұрын
Klack.app I can turn it down
@lukor-tech
@lukor-tech 5 күн бұрын
@@WebDevCody I'd welcome that change, like 20% would be plenty!
@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 5 күн бұрын
@@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 5 күн бұрын
@@WebDevCody i used then too old repo as a base :( I'm neck deep on this already, but should i start over?
@sameneko8979
@sameneko8979 5 күн бұрын
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.
@Djdjjccjck
@Djdjjccjck 5 күн бұрын
Can you please create a Next.Js fullstack project using lucia for authentication. That would be so incredibly helpful!
@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
@dailynews7822
@dailynews7822 4 күн бұрын
Nice
@mcsoud
@mcsoud 4 күн бұрын
I honestly despise adding an external value to the action, I just use a hidden input with the name and just get the value from the form data.
@WebDevCody
@WebDevCody 4 күн бұрын
Yeah that works as well
@RiteshNEVERUNIFORM
@RiteshNEVERUNIFORM 5 күн бұрын
Which theme is this??
@WebDevCody
@WebDevCody 5 күн бұрын
Bearded theme stained blue
@RiteshNEVERUNIFORM
@RiteshNEVERUNIFORM 5 күн бұрын
@@WebDevCody thanks
@melvins126
@melvins126 5 күн бұрын
Copilot can't keep up with this man. Wow!
@denisblack9897
@denisblack9897 6 күн бұрын
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😅
@zayne-sarutobi
@zayne-sarutobi 5 күн бұрын
Theme?
@WebDevCody
@WebDevCody 5 күн бұрын
Bearded theme stain blue
@BarisPalabiyik
@BarisPalabiyik 6 күн бұрын
Amount of gotchas is crazy.
@akashkarnatak6581
@akashkarnatak6581 5 күн бұрын
coming from react, this feels like a different language to me
@chrise202
@chrise202 5 күн бұрын
The most important feature is to delete .next folder when it fails to build
@donnyroufs551
@donnyroufs551 6 күн бұрын
Kind of disappointing to see how much overhead there is just to do something this simple to be honest. Good video regardless!
@WebDevCody
@WebDevCody 6 күн бұрын
I do agree to some extent. On any real project, you'll end up having a or which you use on all your forms, so that isn't something you have to reimplement for the spinner. There are other ways you can abstract forms to have it show a success notification after submit and clear out the forms as well. The one thing I hate most about RSC is it forces me to make new files just to achieve something. I wish they would figure out a way to not require 'use client' because then I could keep everything in the same file.
@Innesb
@Innesb 6 күн бұрын
As your project grows, the relative overhead reduces due to the use of reusable components. If you were building a small project that just needed a couple of forms, then a meta framework such as Next JS is probably OTT.
@ugochukwuumerie6378
@ugochukwuumerie6378 5 күн бұрын
Spam the enter key 😂
@MrPeepa
@MrPeepa 4 күн бұрын
that (global as any).user gave me a headache!
@MrPeepa
@MrPeepa 4 күн бұрын
@WebDevCody can you explain that ive tried to understand that but only found out about globalThis! what does (global as any) mean? and why isnt it a const or let or var?
@BhideSvelte
@BhideSvelte 5 күн бұрын
after watching feels like sveltekit is way more better ....like way moreeeee
@emmanuelsolomon1445
@emmanuelsolomon1445 6 күн бұрын
First to comment 😂❤
@yassinesafraoui
@yassinesafraoui 6 күн бұрын
First
@masabbinzia6523
@masabbinzia6523 6 күн бұрын
Don`t read the Docs🤣😂🤣
@anonymousweeble2224
@anonymousweeble2224 4 күн бұрын
Why do people like magic? Routing that happens automatically based on folder structure, saves you like 5 seconds of typing it in an explicit router file, and causes hours of problems down the line when you need to do something more complex. This idea of specifying parameters by creating an empty folder is some stupid shit. Anyone who uses this must surrender their understanding of what is going on at the door. Having no mental model for what's happening makes this a world of pain as you start using it deeply. The web has always been terrible and it looks like it's committed to being terrible until it gets replaced entirely. Glad I haven't had to do web dev in 4 years.. Mobile app development isn't great, but it's better than this.
@WebDevCody
@WebDevCody 4 күн бұрын
It’s not bad
@justinleong3967
@justinleong3967 5 күн бұрын
1st don't read the docs 😂
@blizzy78
@blizzy78 6 күн бұрын
uses npm in a speedrun 🙄
@WebDevCody
@WebDevCody 6 күн бұрын
🤫
@StingSting844
@StingSting844 6 күн бұрын
That's irrelevant
@bithon5242
@bithon5242 5 күн бұрын
DO NOT tell me what to do!
@abdirahmann
@abdirahmann 6 күн бұрын
its just horrendous, no thanks 😂😂, next feels pretty "hacky" tbh! and i dont like it!
@jonasj2627
@jonasj2627 6 күн бұрын
What are you using instead?
@WebDevCody
@WebDevCody 6 күн бұрын
just drink the koolaid
@nested9301
@nested9301 6 күн бұрын
No one cares about what you like
@Noam-Bahar
@Noam-Bahar 6 күн бұрын
Yeah server actions' DX is horrendous, I have to create like 3 separate files just for a single form
@bobbyboxer2664
@bobbyboxer2664 6 күн бұрын
More short form teaching g 🫡
@slahomar1497
@slahomar1497 6 күн бұрын
What keyboard do you use ?
@WebDevCody
@WebDevCody 6 күн бұрын
klack.app
The Story of Next.js
12:13
uidotdev
Рет қаралды 551 М.
State of Javascript 2023 - everyone is unhappy
14:22
Web Dev Cody
Рет қаралды 14 М.
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 9 МЛН
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 61 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 28 МЛН
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 187 М.
So I've Been Trying Other Languages...
30:59
Theo - t3․gg
Рет қаралды 55 М.
This Should Have Been In CSS Years Ago
1:57
Dev Dive In
Рет қаралды 37 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Only The Best Developers Understand How This Works
18:32
Web Dev Simplified
Рет қаралды 50 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 429 М.
Why I still choose next.js
19:39
Web Dev Cody
Рет қаралды 18 М.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 546 М.
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 9 МЛН