Тёмный

All 29 Next.js Mistakes Beginners Make 

ByteGrad
Подписаться 129 тыс.
Просмотров 69 тыс.
50% 1

Check out Semaphor for analytics here: semaphor.cloud/home (paid sponsorship).
Disclaimer: this is a sponsored video (paid). It's your responsibility to evaluate safety, accuracy and other relevant parts of the reviewed product.
NEW React & Next.js Course: bytegrad.com/courses/professi...
Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
👉 Check out Kinde for auth and more bit.ly/3QOe1Bh
👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
👉 Professional JavaScript Course: bytegrad.com/courses/professi...
👉 Professional CSS Course: bytegrad.com/courses/professi...
👉 Web development roadmap 2024 & 2025: email.bytegrad.com
👉 Email newsletter (BIG update soon): email.bytegrad.com
👉 Discord: all my courses have a private Discord where I actively participate
👉 Kinde: check out Kinde for auth and more bit.ly/3QOe1Bh
⏱️ Timestamps:
00:00 Intro
01:58 Semaphor (add analytics to your Next.js app!)
04:11 #1: "use client" too high
09:45 #2: Not refactoring for "use client"
10:45 #3: Thinking a component is a server component because it does not have "use client"
12:28 #4: Thinking that a server component becomes a client component if you wrap it inside a client component
17:52 #5: Using state management (Context API, Zustand, Redux) in server components
19:37 #6: Using ‘use server’ to create a server component
21:46 #7: Accidentally leaking sensitive data from server to client
23:01 #8: Thinking that client components only run in the client
27:53 #9: Using browser API’s (e.g. localStorage) incorrectly
33:08 #10: Getting hydration errors
38:43 #11: Incorrectly dealing with third-party components
42:27 #12: Using route handlers for getting data
44:28 #13: Thinking it’s a problem to get the same data in different places
48:45 #14: Getting a ‘waterfall’ effect when fetching data
53:12 #15: Submitting data to server component or route handler
59:38 #16: Getting confused when the page doesn’t reflect data mutation
1:01:43 #17: Thinking that server actions can only be used in server components
1:03:40 #18: Forgetting to validate & protect server actions
1:07:26 #19: Adding ‘use server’ to make sure something stays on the server
1:09:35 #20: Misunderstanding dynamic routes (params & searchParams)
1:13:12 #21: Incorrectly working with searchParams
1:19:12 #22: Forgetting to deal with loading state
1:20:35 #23: Not being granular with Suspense
1:22:53 #24: Adding Suspense in the wrong place
1:23:40 #25: Forgetting ‘key’ prop for Suspense
1:29:49 #26: Accidentally opting a page out of static rendering
1:36:10 #27: Hardcoding secrets
1:39:52 #28: Not making a distinction between client and server utils
1:42:05 #29: Using redirect() in try / catch
#webdevelopment #reactjs #nextjs

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

 

21 июн 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 176   
@ByteGrad
@ByteGrad 23 дня назад
Hi, my latest course is out now (Professional React & Next.js): bytegrad.com/courses/professional-react-nextjs -- I'm very proud of this course, my best work! I'm also a brand ambassador for Kinde (paid sponsorship). Check out Kinde for authentication and more bit.ly/3QOe1Bh
@niconel7659
@niconel7659 8 дней назад
Do you offer regional discounts like some other authors, taking in account students country? (like South Africa with a very weak Rand to the US Dollar)
@sedmidivka
@sedmidivka Месяц назад
you are THE ONLY ONE who actually is trying to explain this on examples which aren't complete copies of the documentation together with the same, exactly the same, explanation. I'm so thankful I can't even express this properly in words, it's very frustrating to look for some explanations and just getting these videos with the exact documentation copy paste with 0 info over and over and over again...... man
@ByteGrad
@ByteGrad Месяц назад
Thanks!
@mangoherpson
@mangoherpson Месяц назад
Agreed
@olusanyaolamide9764
@olusanyaolamide9764 Месяц назад
Byte Grad is super smart, another amazing video
@FendiFliperachi
@FendiFliperachi Месяц назад
Exactly
@araggohnxd
@araggohnxd День назад
this is not only the best nextjs video I've watched, it is also one of the best overall programming videos I've ever watched. I can't stress enough how useful this is. thank you so much!!!
@roguegoblin2407
@roguegoblin2407 Месяц назад
I've been working with Nextjs for two years and you made me aware of so much mistakes I made in past projects. Great video.
@ZynthCode
@ZynthCode Месяц назад
This is gold, thank you. Well explained, especially the server/client component differences and woes, such as Hydration errors. Extra Side Note: I rarely, if ever, watch a 2h video tutorial in one go, so kudos for keeping it extremely relevant for Next.js devs :)
@ByteGrad
@ByteGrad Месяц назад
Glad it was helpful!
@hyperbrug9328
@hyperbrug9328 Месяц назад
This is actually the #1 next js video for beginners. You cleared up so much of my confusion
@ustav_o
@ustav_o Месяц назад
exactly what i was looking for. keep it up!
@psmontte
@psmontte Месяц назад
You are the best Next.js teacher 🌟 I've bought overpriced Next.js courses from RU-vidrs with 1M+ subscribers, but nobody explains like you do! 👍
@rahulgupta7720
@rahulgupta7720 Месяц назад
Highly comprehensive video! Keep going
@AliAchternaam
@AliAchternaam Месяц назад
You are the man! This channel is a gold mine for people learning NextJs. Can't praise and recommend you enough!!!
@technologymad9253
@technologymad9253 Месяц назад
myyyyyyy heroooo its a treasure for nextjs devs!! really expecting a video like this from you!!
@ansarqazi4377
@ansarqazi4377 Месяц назад
I'm just around half way there in the video & feeling like I have watched hours long tutorial. Highly appreciate the content! Highly appreciate your efforts & knowledge! Bundle of thanks!
@abishekbaiju1705
@abishekbaiju1705 Месяц назад
Thanks again. The only channel where I am very excited for the new uploaded videos...
@aaliraza4004
@aaliraza4004 Месяц назад
Thank you, Wesley, you resolved many of my issues.👍
@AlecHalePletka
@AlecHalePletka 29 дней назад
best NextJS video on RU-vid & it's not even close
@northerncoder
@northerncoder Месяц назад
Great video. I am only 20mins in and it has already cleared up server/client confusion I had while starting to work with Nextjs.
@ByteGrad
@ByteGrad Месяц назад
Nice!
@thedavistheory7674
@thedavistheory7674 Месяц назад
Most concise react content creator, thanks a lot for the tutorials!
@staticwasabi
@staticwasabi Месяц назад
Thank you for the clear explanations!
@user-un9cs7zq5w
@user-un9cs7zq5w Месяц назад
Thank you. Great Explanation!
@hey.............
@hey............. Месяц назад
hands down, one of the most useful video on next.js. Subscribed.
@lukaszw1
@lukaszw1 Месяц назад
This was an awesome knowledge pill! I've watched it in one go and now I understand my code better. Thank you!
@bribri-dy1te
@bribri-dy1te 23 дня назад
This is what we need, it clears all the misconception about next js, huge thanks to you sir.
@thedigitalceo
@thedigitalceo Месяц назад
This is pure gold.
@aripanda4209
@aripanda4209 6 дней назад
Video is freakishly helpful. Great job buddy.
@AndriusLauFullstack
@AndriusLauFullstack Месяц назад
Nice overview! I have some experience with React and started learning NextJs. Currently, I'm building a full-stack app, and for a front-end I decided to use NextJs. So your video is a good reminder of which mistakes need to be avoided.
@MirkoVukusic
@MirkoVukusic 3 дня назад
really good video. At start i thought it's too fast, but repeating stuff just makes it so clear by the end
@sittshayne4130
@sittshayne4130 8 дней назад
Awesome this is a exactly what I needed. Thanks so much for making this video.
@avi_mukesh
@avi_mukesh Месяц назад
Only about half hour into the video, but already learning a lot. Thank you so much for making this
@jfhandfield
@jfhandfield Месяц назад
My god was that well explained. I needed that video months ago when I started my project it would have help soooo much. Thank you for the video
@ztipsamme
@ztipsamme 19 дней назад
Perfect timing! I'm currently on week 4 of learning Next.js and this video has been very helpful 🤓🙏🏼
@ritavdas7570
@ritavdas7570 15 дней назад
This video is an absolute gem! 🌟 The explanation of the Next.js app router and pages router differences was incredibly clear and helpful. The examples provided on server components and client components really made it easy to understand where to use each. I especially appreciated the deep dive into hydration errors and how to handle them. Keep up the great work! 🚀👏
@nikita-dev
@nikita-dev Месяц назад
Amazing video! This was super helpful.
@insane-works
@insane-works Месяц назад
wowzers! this was awesome 2 hours! agreed with comments above, mistakes you were showing, was the mistakes i made in a some of my previous projects great job! subscribed!
@robboten
@robboten Месяц назад
Really useful knowledge and well explained! So easy to miss some of these when starting with next.js. Thank you!
@mounir101
@mounir101 Месяц назад
Great video, bro! I learned a lot more than I did from the Next.js documentation because you explained things thoroughly. Thanks a lot for your hard work.
@juanevillam
@juanevillam Месяц назад
Great video! Very clear
@rahulnag9582
@rahulnag9582 Месяц назад
One of the best video on NextJS doubts which will only arise once you become expert in NextJS after completing FEW videos FEW projects. But your video is so amazing that if any dev will watch it completely will definitely become pro in NextJS and any confusion which used to come when we do large project will be cleared out after watching this, Thanks :) Much love from India.
@VincentFulco
@VincentFulco Месяц назад
Phenomenal collection!
@Krblshna
@Krblshna Месяц назад
Brilliant video, thanks for hard work
@kamrant8915
@kamrant8915 Месяц назад
Thank you very much for your comprehensive explanations.🥰
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd 27 дней назад
thanks man, keep posting videos like this
@russobradock
@russobradock 12 дней назад
Thank you very much. What wonderful content, it will be of great help in future projects.
@oxusss
@oxusss 12 дней назад
Great video! Thank you for making this
@russelschuster8036
@russelschuster8036 29 дней назад
lot of hard work. just 12 minutes into this video and i already liked and subscribed this channel.
@azradreamer6314
@azradreamer6314 Месяц назад
Wesley, U r AMAZING! Thank you!
@qsales2022
@qsales2022 Месяц назад
Thanks for your next js videos❤❤
@techGPT97
@techGPT97 Месяц назад
amazing quality content.kudos
@cerdek9190
@cerdek9190 Месяц назад
Very informative thank you
@patolorde
@patolorde Месяц назад
thank you very much this is a really great masterclass on next.
@ByteGrad
@ByteGrad Месяц назад
Enjoy!
@erlanggadewasakti
@erlanggadewasakti День назад
you are such kind of superhero , thanks for the lesson
@technep9776
@technep9776 Месяц назад
wow. Great content , keep it up man.
@denvelez123
@denvelez123 Месяц назад
great video!! thank you
@justinsong3506
@justinsong3506 26 дней назад
very deep and easy understanding explaination
@davidalejandrollanesbojorq63
@davidalejandrollanesbojorq63 Месяц назад
This video is really good. I’ve just finished reading the docs and you just filled all the blanks in my mind. Btw, what Vs code theme are you using? Thx
14 дней назад
very informative , thanks
@EduarteBDO
@EduarteBDO Месяц назад
This video is super relevant, I learned a lot of things, I found out that I was not validating my server actions, I'll have to address this because I thought that nextjs automatically validated them but now that I think, there's now way that next will know what type things are for validation, this is just a typescript layer. I have to come up with a nice validation strategy for keeping types but knowing that it can be unknow data for server actions.
Месяц назад
Great video!
@tokomnyori6730
@tokomnyori6730 Месяц назад
Brilliant! 🚀
@shashank.superone
@shashank.superone Месяц назад
Amazing! Awesome! Fabulous! You have explained ALL what all common confusions go on with NextJs. NextJs should include this video in their official guides and help/troubleshoot/Faqs docs. This cleared most of my doubts for which I was not finding a fitting resolutions together combined anywhere else. ❤ Thanks alot #ByteGrad
@ByteGrad
@ByteGrad Месяц назад
Thanks, enjoy!
@shashank.superone
@shashank.superone Месяц назад
​@@ByteGrad One thing doubt remains, when I have to use header on all page, or authentications , how to make sure not all pages become dynamic rendered? U said middleware word, but that not explained. What is real solution?
@kaziprosper2229
@kaziprosper2229 Месяц назад
Middleware is a special file you create at the root of your next js project. This file is where you put all your authentication logic. Just like loading, error, route and page files have a special meaning in next js, a middleware file would automatically be recognized by next js and would be run by next js before the routes you specify in the matcher of helper function written in your middleware file.
@wusswuzz5818
@wusswuzz5818 21 день назад
This was one of the best deliveries i have seen outside of dave gray. Will be picking up that course, and hoping it is delivered with the same clarity.
@ByteGrad
@ByteGrad 21 день назад
Awesome, enjoy!
@bonadio60
@bonadio60 Месяц назад
Great tips!!!
@nextreact
@nextreact Месяц назад
I learned a lot. Thanks
@user-xp6gm2bz8w
@user-xp6gm2bz8w 21 день назад
Incredible content 👏
@hilmiterzi3847
@hilmiterzi3847 24 дня назад
This tutorial definetly should have saved thousands of Nextjs devs lol. Was at least 100x better than the nextjs documentation
@justinleong3967
@justinleong3967 21 день назад
Excellent explanation
@avigdev
@avigdev Месяц назад
Great!! I learned a lot (Mainly from the mistakes(8,9,10))
@ByteGrad
@ByteGrad Месяц назад
Nice!
@rammehar5531
@rammehar5531 Месяц назад
Wonder full great explanation thank you brother. please also make a video on security in nextjs. how to add rateLimiter etc.
@gerkim3046
@gerkim3046 Месяц назад
Please make a similar one for next-auth, thank you Grad.
@akibmahmudrime2845
@akibmahmudrime2845 Месяц назад
This is a very good video. Nice work
@hasst9261
@hasst9261 Месяц назад
Useful information
@vikasni95
@vikasni95 28 дней назад
Wow sir you are attempting to do those things which other youtube doesn't focus on thank you sir 🥰🥰😍
@gopal914
@gopal914 Месяц назад
Every minute of this video is called "QUALITY CONTENT"
@kingmeditation6308
@kingmeditation6308 Месяц назад
thanks. i learned a lot
@ByteGrad
@ByteGrad Месяц назад
Glad to hear it!
@learner8084
@learner8084 Месяц назад
This is so good. I want to click the like button many times for you... thanks...
@nasko235679
@nasko235679 Месяц назад
Your course was amazing and your videos are always top tier. I would love it if you could do a database design course/series of videos.
@ByteGrad
@ByteGrad Месяц назад
Great to hear, thanks! Will think about your suggestion
@zarefgamz2515
@zarefgamz2515 4 дня назад
amazing video, i started to smell my code and when i went to your video, it was indeed my code was smelly :D
@arthurarthur732
@arthurarthur732 10 дней назад
Amazing video 🎉
@WebDevCody
@WebDevCody Месяц назад
29 pitfalls.. makes me wonder why I keep using next.
@ByteGrad
@ByteGrad Месяц назад
The learning curve is real, but worth it IMO
@martg0
@martg0 Месяц назад
If I have a card component that fetches database data, and this card component needs a zustand state transferred via props, how could it be done? The issue appears when I need client parent component using client state, and loads a child from server component. If I do an API I can solve this because everything will run at the client, but I want to get rid of APIs to connect to the database. thanks!!
@jegadheeswarank6290
@jegadheeswarank6290 Месяц назад
Your videos are great
@real23lions
@real23lions 25 дней назад
Movie length video. GOATed
@rajfekar1514
@rajfekar1514 Месяц назад
thank you byte
@mtn166
@mtn166 8 часов назад
Very helpful for me
@ethanforvest
@ethanforvest 8 дней назад
Thank you bro
@zoirjonabduvohidov2897
@zoirjonabduvohidov2897 14 дней назад
I can say just very good video for all not only beginners
@Applecitylightkiwi
@Applecitylightkiwi Месяц назад
Lekker gedaan gap
@aisdjsiasiodjisoajd7698
@aisdjsiasiodjisoajd7698 Месяц назад
Change the title to Mistakes devs make. I’m not a beginner and you made some great points!
@DrShmuck
@DrShmuck 19 дней назад
Such an underrated channel!
@ZynthCode
@ZynthCode Месяц назад
Intrusive thoughts: Take a shot every time "component" is being said
@fiantsoharena1584
@fiantsoharena1584 Месяц назад
Very good explaination as always! Could you please give me the VS code theme that you use?
@imkeyi
@imkeyi 19 дней назад
if i have product card component that contains the favorite button, should i direct make productCard component 'use client' or create a 'use client' favorite button component and import it in productCard thank you
@Harshit.git911
@Harshit.git911 Месяц назад
quality work
@joepetrillo6185
@joepetrillo6185 Месяц назад
There is no way out of dynamic rendering if we need the header component in use on the page right?
@nickwoodward819
@nickwoodward819 11 дней назад
So ~ @23:00 by default it renders all html on the server, which just as a side effect runs any JS, then it hydrates any client component, right?
@TheMrPoss
@TheMrPoss Месяц назад
thanks. can i ask you what vscode theme you use?
@kale_bhai
@kale_bhai Месяц назад
What about use clients on layout if some package requires use client to run like amplify auth
@mrtechnostart
@mrtechnostart 24 дня назад
You earned a sub, Next God.
@christian_k_e
@christian_k_e Месяц назад
I normally dislike youtube videos to learn about frameworks and programming but, I believe nextjs documentation is way too high level and as soon as you hit some specific problem is rather useless. As many others said, this cleared a lot of my confusion with nextJS, thank you.
@ts8960
@ts8960 Месяц назад
thanks
@polidahiya9024
@polidahiya9024 Месяц назад
can we use suspense on images or Image component of Nextjs?
Далее
NextJS Tutorial - All 12 Concepts You Need to Know
44:38
D3 Ferrari 296 GTS. ОНО ТЕБЕ НАДО?
17:12
Просмотров 277 тыс.
10 common mistakes with the Next.js App Router
20:37
Просмотров 184 тыс.
Reviewing your React Code: Episode #3
14:27
Просмотров 2,2 тыс.
Web Developer Roadmap (2024) - Everything is Changing
25:02
Fetching Data Doesn't Get Better Than This
6:58
Просмотров 78 тыс.
Next js 15 is Here… New Changes Again?!
8:13
Просмотров 115 тыс.
The BEST way to host Next.js websites
17:37
Просмотров 23 тыс.