Тёмный

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

Web Dev Cody
Подписаться 220 тыс.
Просмотров 17 тыс.
50% 1

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

Опубликовано:

 

24 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 146   
@josh.manders
@josh.manders 3 дня назад
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 3 дня назад
thanks man! I have done that before but I always forget about it
@dvillegaspro
@dvillegaspro 2 дня назад
Even better just do it all with the `touch` command from the terminal :D
@nikmat
@nikmat 2 дня назад
@@dvillegaspronah, you’ll have to cd into subfolders if it needs be, another stupid step most of the time.
@dvillegaspro
@dvillegaspro 2 дня назад
@@nikmat you can just write out the full path, which is why I was mostly kidding hehe
@wlockuz4467
@wlockuz4467 2 дня назад
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.
@null_spacex
@null_spacex 3 дня назад
Me watching you do things I do every single day: 👁️👄👁️
@waleedaamer8316
@waleedaamer8316 День назад
Coming from like 2 beginner NextJS tutorials, this has some how taught me more then 4 hours of RU-vid
@alonsoalarconaguilar7113
@alonsoalarconaguilar7113 2 дня назад
1 hour worth content resumed in less than 10 minutes, thanks Cody!!!
@TiriasCZ
@TiriasCZ 3 дня назад
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.
@sole008
@sole008 3 дня назад
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 3 дня назад
yeah that's a good idea
@ahmedsenousy6734
@ahmedsenousy6734 2 дня назад
@@WebDevCody that would be amazing! you will have gave out raw experience that is very difficult to get from just browsing google
@WebDevCody
@WebDevCody 3 дня назад
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 2 дня назад
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.
@discoRyne
@discoRyne 3 дня назад
Appreciate the compressed flow to this upload.
@grandpowr
@grandpowr 2 дня назад
These short type of videos are really good, keep at them!
@Emperorll
@Emperorll 3 дня назад
Awesome! Yes please, more of these compact learn next.js features. It's simple, fast and concise, great to focus and retain information.
@nsrez2687
@nsrez2687 2 дня назад
bro the keyboard sounds so good.
@fvbixn
@fvbixn День назад
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 😂
@boyo_23
@boyo_23 2 дня назад
This is great! I already know this stuff, but having content that summarizes all of it really well helps me a lot!
@dalar2
@dalar2 3 дня назад
who else is loving hearing the keystrokes
@HeinekenLasse
@HeinekenLasse 2 дня назад
Wonder what keyboard/switches are those
@laurentperroteau632
@laurentperroteau632 День назад
Thanks, just what I was looking for to understand how build classic CRUD thing in Next.js
@NizzyABI
@NizzyABI 3 дня назад
This made my day
@WebDevCody
@WebDevCody 3 дня назад
🤣 my first membership video with 10 minute pre-release access
@amershboul9107
@amershboul9107 2 дня назад
Quick and sweet Keep going brother
@nicolasramos7084
@nicolasramos7084 2 дня назад
Great video, loved the format!
@matteobagni1235
@matteobagni1235 День назад
Great video! I love working with Nuxt
@dr.lazysloth3415
@dr.lazysloth3415 2 дня назад
Quick and simple content to learn or refresh knowledge. Great teacher 🙂
@manjyotkalkat4513
@manjyotkalkat4513 2 дня назад
Really great and informative video! Love to see more like this.
@colinswancs
@colinswancs 2 дня назад
Love this concise way of teaching. Great content. Thank you.
@alasassi960
@alasassi960 2 дня назад
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 .
@MohammadJunaid96
@MohammadJunaid96 2 дня назад
Good content! perfect pace 👍
@jurgensen_eth2970
@jurgensen_eth2970 3 дня назад
love your vids dude keep them coming
@andrewbunea765
@andrewbunea765 3 дня назад
Thank you for this!
@junsgk
@junsgk 2 дня назад
What keyboard r u using??? Sounds great
@AvisekDas
@AvisekDas 2 дня назад
Love your videos. What VSCode Theme do you use ?
@thespiritninja11
@thespiritninja11 День назад
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
@jareksliz6711
@jareksliz6711 2 дня назад
Really good content. I appreciate it. It is very helpful. What VSCode theme are you using? I like it a lot :)
@mamad-dev
@mamad-dev 2 дня назад
that was actually fast, awesome
@treyjapan
@treyjapan 2 дня назад
Excellent video
@Noam-Bahar
@Noam-Bahar 2 дня назад
Great video!!
@kevinfriedman6766
@kevinfriedman6766 2 дня назад
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 2 дня назад
I’m not sure why you mean by reaching for route handlers
@rem2592
@rem2592 2 дня назад
What keyboard are you using?
@captainnoyaux
@captainnoyaux 3 дня назад
Thanks a lot for this video it's cool to watch ! Do you use copilot for code completion or another AI ?
@WebDevCody
@WebDevCody 3 дня назад
yes copilot
@captainnoyaux
@captainnoyaux 3 дня назад
​@@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 2 дня назад
@@captainnoyaux codium is a great free alternative to copilot
@Innesb
@Innesb 2 дня назад
@@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 2 дня назад
​@@Innesbwhat'd you recommend ?
@usamabilal3798
@usamabilal3798 2 дня назад
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 2 дня назад
If I get time yeah
@kurwacherry
@kurwacherry 2 дня назад
@@WebDevCody supabase vid with nextjs would be great
@JoshIbbotson
@JoshIbbotson 2 дня назад
This is ace and makes me depressed that I use angular at work lol Also what keyboard do you use? Sounds amazing!
@TheNakidNinja
@TheNakidNinja 2 дня назад
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?
@nulljeroka
@nulljeroka 2 дня назад
Great video.
@VincentFulco
@VincentFulco 2 дня назад
Great stuff, picked up a few tips, twice as long please!
@sunnysetia
@sunnysetia 3 дня назад
Which keyboard and keys do you have? Sounds good Cody!
@AhmadMughal1
@AhmadMughal1 2 дня назад
i don't think that is his keyboards actual sound. Most likely Mechvibes for the video.
@trevortylerlee
@trevortylerlee 2 дня назад
it's a mac app called Klack.
@khaledBreaker
@khaledBreaker 2 дня назад
keep em coming
@valtonsejdiu4561
@valtonsejdiu4561 2 дня назад
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 2 дня назад
Yup, but react 19 is RC still, so I’m not going to teach it
@austincodes
@austincodes 2 дня назад
The first step should absolutely be to read the docs😊
@fabianpetersen2452
@fabianpetersen2452 День назад
Excellent 👍
@hb50777
@hb50777 3 дня назад
So cool man 😎
@CodingWithDilip
@CodingWithDilip 3 дня назад
awesome 👍
@waeltarabishi6890
@waeltarabishi6890 2 дня назад
which better ? iam using react hook form to handle form submission and i am using function in server action file!
@williamx0
@williamx0 3 дня назад
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 2 дня назад
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 3 дня назад
Awesome
@adarsh-chakraborty
@adarsh-chakraborty 3 дня назад
Thanks
@ComfyCosi
@ComfyCosi 2 дня назад
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 2 дня назад
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 3 дня назад
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 3 дня назад
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 3 дня назад
At least Next v.14, I mean the latest stable version
@WebDevCody
@WebDevCody 3 дня назад
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 3 дня назад
@@WebDevCody Thank you sir, you’re the best youtuber for advanced React / Web Dev concepts overall. Wanted to let you know
@digidope
@digidope 3 дня назад
Is it good or bad that the structure is still /pages and .js files?
@WebDevCody
@WebDevCody 3 дня назад
I mean I personally would just use the app router. I also stopped using javascript a long time ago
@thejonte
@thejonte 3 дня назад
/app router is newer than /pages router. Never use .js instead of .ts
@digidope
@digidope 2 дня назад
@@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 2 дня назад
@@WebDevCody i used then too old repo as a base :( I'm neck deep on this already, but should i start over?
@qhkmdev
@qhkmdev 10 часов назад
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
@clearlyunwell
@clearlyunwell 3 дня назад
Perfect.
@SulagnoGhosh
@SulagnoGhosh 3 дня назад
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
@sebastianmocanu6399
@sebastianmocanu6399 2 дня назад
What keyboard are you using ?😂 (sounds great)
@Innesb
@Innesb 2 дня назад
The keyboard clicks are coming from an app that simulates key press sounds.
@WebDevCody
@WebDevCody 2 дня назад
Klack.app
@sameneko8979
@sameneko8979 2 дня назад
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.
@denisblack9897
@denisblack9897 3 дня назад
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😅
@lukor-tech
@lukor-tech 2 дня назад
What the keyboard ⌨️ xD I think the mic is tad bit too close to it ;)
@lukor-tech
@lukor-tech 2 дня назад
Otherwise great vid!
@WebDevCody
@WebDevCody 2 дня назад
Klack.app I can turn it down
@lukor-tech
@lukor-tech 2 дня назад
@@WebDevCody I'd welcome that change, like 20% would be plenty!
@RiteshNEVERUNIFORM
@RiteshNEVERUNIFORM 2 дня назад
Which theme is this??
@WebDevCody
@WebDevCody 2 дня назад
Bearded theme stained blue
@RiteshNEVERUNIFORM
@RiteshNEVERUNIFORM 2 дня назад
@@WebDevCody thanks
@outis99
@outis99 3 дня назад
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 3 дня назад
everything in one project makes life simple in some aspects
@Mnogarithm
@Mnogarithm 2 дня назад
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.
@dailynews7822
@dailynews7822 19 часов назад
Nice
@zayne-sarutobi
@zayne-sarutobi День назад
Theme?
@WebDevCody
@WebDevCody День назад
Bearded theme stain blue
@Djdjjccjck
@Djdjjccjck 2 дня назад
Can you please create a Next.Js fullstack project using lucia for authentication. That would be so incredibly helpful!
@donnyroufs551
@donnyroufs551 3 дня назад
Kind of disappointing to see how much overhead there is just to do something this simple to be honest. Good video regardless!
@WebDevCody
@WebDevCody 2 дня назад
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 2 дня назад
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.
@BarisPalabiyik
@BarisPalabiyik 2 дня назад
Amount of gotchas is crazy.
@mcsoud
@mcsoud День назад
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 День назад
Yeah that works as well
@akashkarnatak6581
@akashkarnatak6581 2 дня назад
coming from react, this feels like a different language to me
@melvins126
@melvins126 2 дня назад
Copilot can't keep up with this man. Wow!
@ugochukwuumerie6378
@ugochukwuumerie6378 2 дня назад
Spam the enter key 😂
@chrise202
@chrise202 День назад
The most important feature is to delete .next folder when it fails to build
@MrPeepa
@MrPeepa День назад
that (global as any).user gave me a headache!
@MrPeepa
@MrPeepa День назад
@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?
@emmanuelsolomon1445
@emmanuelsolomon1445 3 дня назад
First to comment 😂❤
@bithon5242
@bithon5242 2 дня назад
DO NOT tell me what to do!
@BhideSvelte
@BhideSvelte 2 дня назад
after watching feels like sveltekit is way more better ....like way moreeeee
@yassinesafraoui
@yassinesafraoui 3 дня назад
First
@anonymousweeble2224
@anonymousweeble2224 День назад
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 День назад
It’s not bad
@masabbinzia6523
@masabbinzia6523 2 дня назад
Don`t read the Docs🤣😂🤣
@justinleong3967
@justinleong3967 2 дня назад
1st don't read the docs 😂
@blizzy78
@blizzy78 2 дня назад
uses npm in a speedrun 🙄
@WebDevCody
@WebDevCody 2 дня назад
🤫
@StingSting844
@StingSting844 2 дня назад
That's irrelevant
@abdirahmann
@abdirahmann 3 дня назад
its just horrendous, no thanks 😂😂, next feels pretty "hacky" tbh! and i dont like it!
@jonasj2627
@jonasj2627 3 дня назад
What are you using instead?
@WebDevCody
@WebDevCody 3 дня назад
just drink the koolaid
@nested9301
@nested9301 3 дня назад
No one cares about what you like
@Noam-Bahar
@Noam-Bahar 2 дня назад
Yeah server actions' DX is horrendous, I have to create like 3 separate files just for a single form
@bobbyboxer2664
@bobbyboxer2664 3 дня назад
More short form teaching g 🫡
@slahomar1497
@slahomar1497 3 дня назад
What keyboard do you use ?
@WebDevCody
@WebDevCody 3 дня назад
klack.app
Далее
Every React Concept Explained in 12 Minutes
11:53
Просмотров 421 тыс.
Fetching Data Doesn't Get Better Than This
6:58
Просмотров 82 тыс.
Задержали в аэропорту
00:56
Просмотров 276 тыс.
🎤Пою РЕТРО Песни ✧˖°
3:04:48
Просмотров 1,7 млн
So I've Been Trying Other Languages...
30:59
Просмотров 48 тыс.
Agile doesn't suck, you're just bad at it
19:26
Просмотров 7 тыс.
How to Organize Your Solo Dev Project Like a Pro
7:42
Next.js Server Actions...  5 awesome things you can do
7:51
This self hosted emailer might just kill resend.io
7:10
I Tried a New Pattern in React
15:06
Просмотров 6 тыс.
TOP 6 Mistakes in RxJS code
18:35
Просмотров 11 тыс.
Why I still choose next.js
19:39
Просмотров 17 тыс.
This Package Saved My SaaS
5:46
Просмотров 101 тыс.
JavaScript Is A Totally Normal Language
46:04
Просмотров 43 тыс.