All 29 Next.js Mistakes Beginners Make

  Рет қаралды 156,945

ByteGrad

ByteGrad

Күн бұрын

Пікірлер: 266
@ByteGrad
@ByteGrad 7 ай бұрын
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 6 ай бұрын
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)
@kumardeepam
@kumardeepam 5 ай бұрын
@@niconel7659 also, for India?
@sedmidivka
@sedmidivka 7 ай бұрын
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 7 ай бұрын
Thanks!
@mangoherpson
@mangoherpson 7 ай бұрын
Agreed
@olusanyaolamide9764
@olusanyaolamide9764 7 ай бұрын
Byte Grad is super smart, another amazing video
@FendiFliperachi
@FendiFliperachi 7 ай бұрын
Exactly
@rishibakshi2004
@rishibakshi2004 6 ай бұрын
agreed agreed agreed❤
@EverNife
@EverNife 5 ай бұрын
Well, this video alone is more valuable than most courses about Next.js. Almost all mistakes solved in this video are from real-life struggles and can easily take tons of hours to figure out how to solve them alone! Thank you for the amazing video! I was hesitant to upgrade to Next 15 because of these doubts I had about server/client components. This video helped me a lot. :D
@devklepacki
@devklepacki 5 ай бұрын
What I love about this video is how you go through each example and insert those "oh, and btw you can also do this this other way, and this will work a little different, which may or may not be better in your use case". That's always what lack in tutorials. Everyryone is teach only one, their, strict way, and if you try to deviate from that for an inch, then everything falls aparat, but they won't tell you that!
@roguegoblin2407
@roguegoblin2407 7 ай бұрын
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.
@vladimir_dev
@vladimir_dev 23 күн бұрын
This is pretty much becoming my favorite video on the internet right now
@ritavdas7570
@ritavdas7570 3 ай бұрын
Watch this video every once in a while because it's golden
@JustCode200
@JustCode200 3 ай бұрын
This video felt like 10 minutes to watch. Improved many things in my current project because of you. Thank you
@farisfaikar_r
@farisfaikar_r 3 ай бұрын
I watched the video for a bit and didn't realize I've watched it for 1 hour. Yes, it indeed felt like a 10 minute video XD
@ZynthCode
@ZynthCode 8 ай бұрын
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 8 ай бұрын
Glad it was helpful!
@jasonreid9267
@jasonreid9267 3 ай бұрын
Way to get to the f'ng point on every one of these! I typically can't sit through long instructional videos...they're so often filled with fluff. I find myself skipping through them looking for actual content and (typically) giving up. But this was an easy 1hr and 45 to watch every single minute of. Hats off.
@konradmaocha6397
@konradmaocha6397 Ай бұрын
Thanks, I made exactly the most of the mistakes you are mentioning here. My problem with "use client" overuse was very painful, as I was getting 429 from the external service that I'm using for auth. The problem was, I was fetching data on the server side but the call went from client component, so through the middleware I had many requests on a single render of a all components, causing 429 on user check and token refresh. A tough lesson learned - I wish I’d seen your video sooner!
@hyperbrug9328
@hyperbrug9328 7 ай бұрын
This is actually the #1 next js video for beginners. You cleared up so much of my confusion
@AjayRibadiya-v4d
@AjayRibadiya-v4d 5 ай бұрын
"Insightful video! It's no mistake to say this is the #1 Next.js guide for beginners. Your comprehensive rundown cleared the fog surrounding many common misconceptions. Time to level up our digital marketing game with Semaphor analytics. Thank you!"
@skyy-v5o
@skyy-v5o 4 ай бұрын
bro you are the one and only one kind of a teacher who has explained the concepts like a teacher teaches to kids , minimalistically yet on to the point , I will be buying your course , I am from India and even after the discount price is still high for me , I am gonna save and bring your react next course , please dont stop content like this , your explanations are best , also please start series like this for react and other , Also please start project series , i feel no other teacher can match the style when it comes to build complex apps on youtube , so please go ahead with projects tutorials.
@ByteGrad
@ByteGrad 4 ай бұрын
Awesome, thanks!
@LucaSapoW
@LucaSapoW 4 ай бұрын
Just waiting for my CC turn to buy your course. You are , by far, the best teacher i ever had. Greetings from Brazil!
@psmontte
@psmontte 7 ай бұрын
You are the best Next.js teacher 🌟 I've bought overpriced Next.js courses from KZbinrs with 1M+ subscribers, but nobody explains like you do! 👍
@northerncoder
@northerncoder 7 ай бұрын
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 7 ай бұрын
Nice!
@justincheong6159
@justincheong6159 6 ай бұрын
I have seen quite a lot of NextJS videos on KZbin and also courses from Udemy. This is the BEST so far. Practical examples to demonstrate the mistakes. And most importantly it rephrases those big terms we see in documentation in a layman way that beginner can understand. Thanks for the video
@tomasburian6550
@tomasburian6550 2 ай бұрын
A lot has been learned here. Also love how you use TS along with the code. That's professional level.
@araggohnxd
@araggohnxd 6 ай бұрын
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!!!
@mahalingappabirajdar5285
@mahalingappabirajdar5285 3 ай бұрын
This type of explanation I've never seen on youtube, once again thank you for your efforts.
@AlecHalePletka
@AlecHalePletka 7 ай бұрын
best NextJS video on KZbin & it's not even close
@caldog20
@caldog20 6 ай бұрын
After the first few sections, I ended up watching the entire video. You do an excellent job of providing real world scenarios and examples on the topics, as well as explaining the alternative of your advice. Awesome work
@AvinashRathod
@AvinashRathod Ай бұрын
Excellent , this cleared a lot of misconceptions I had and also gave me more clarity on NextJs App router concepts. Thank you.
@salkohajric6176
@salkohajric6176 5 ай бұрын
GREAT VIDEO! Giving real world examples that are at the same time generic is best way to convey the knowledge. Even if I often read documentations and articles, I learned a lot of new things from this video and see some of my mistakes from the past, that I resolved but didn't know why was it resolved. THANK YOU for this!
@ramizkhan3967
@ramizkhan3967 Ай бұрын
i am new to nextjs and your video has helped me to understand client and server component difference.
@АлексейБатькович-з5т
@АлексейБатькович-з5т 4 күн бұрын
Ты молодец. Именно этой информации мне не хватало и именно её так тяжело найти на просторах интернета. Ты лучший
@АлексейБатькович-з5т
@АлексейБатькович-з5т 4 күн бұрын
Слушай, а это все понятно когда мы использует fetch и чистый next js. А что если мой сервер с базой данных находится не в проекте next js. А где то на другом сервере. Я обращаюсь к нему посредством rest api. Я пытаюсь прикрутить в свой next js проект tanstak query. Я думаю что это будет лучшим решением чем то что предлагает next js из коробки. Мне интересно твоё мнение.
@ansarqazi4377
@ansarqazi4377 7 ай бұрын
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!
@arek9430
@arek9430 3 ай бұрын
Such a quality content with so robust explanation and presentation. Not many creators do that. Thanks, it was pleasure to watch and learn from it.
@ByteGrad
@ByteGrad 3 ай бұрын
Much appreciated!
@AndriusLauFullstack
@AndriusLauFullstack 7 ай бұрын
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.
@vivekgupta6942
@vivekgupta6942 2 ай бұрын
this video is the best out there, I'm happy that I found it, but sad that it took me so long to get to this golden gem. very nice work, hope you keep sharing your knowledge.
@jawyor-k3t
@jawyor-k3t 3 ай бұрын
so much better than those vercel guys that literally do documentation voiceover as if people can't read
@TANUJDARGAN
@TANUJDARGAN 3 ай бұрын
It's funny cause I just made the mistake of using "use client" wherever I got an error just to get around it without actually understanding it and the first video I get recommended is yours, almost ironic. Thank you so much though this video saved so much time for me with my first project!
@rahulnag9582
@rahulnag9582 7 ай бұрын
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.
@aniketpandey2524
@aniketpandey2524 4 ай бұрын
I spent last 3 months learning NEXTJs(Switching from react to next) and some things just didn't make sense although I'm pretty good with react. This one video simplified entire Nextjs for me. Thanks a lot brother. I'm eternally grateful.. Now it all makes complete sense.
@bribri-dy1te
@bribri-dy1te 7 ай бұрын
This is what we need, it clears all the misconception about next js, huge thanks to you sir.
@technologymad9253
@technologymad9253 7 ай бұрын
myyyyyyy heroooo its a treasure for nextjs devs!! really expecting a video like this from you!!
@LoveTheBall
@LoveTheBall 2 ай бұрын
Great information! Just started my first nextjs project and this information really helped alot! I'll refactor some of my code based on it.
@RedRobotDevelopment
@RedRobotDevelopment 5 ай бұрын
This is an excellent video - I have experienced ALL the problems mentioned here
@gopal914
@gopal914 7 ай бұрын
Every minute of this video is called "QUALITY CONTENT"
@GureiFokkusu84
@GureiFokkusu84 27 күн бұрын
Thank you for helping me with my current and previous project.
@MirkoVukusic
@MirkoVukusic 6 ай бұрын
really good video. At start i thought it's too fast, but repeating stuff just makes it so clear by the end
@thedavistheory7674
@thedavistheory7674 7 ай бұрын
Most concise react content creator, thanks a lot for the tutorials!
@guidopiotrowski7114
@guidopiotrowski7114 4 ай бұрын
What an amazing video. Very clarifying!!
@russelschuster8036
@russelschuster8036 7 ай бұрын
lot of hard work. just 12 minutes into this video and i already liked and subscribed this channel.
@wusswuzz5818
@wusswuzz5818 7 ай бұрын
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 7 ай бұрын
Awesome, enjoy!
@hey.............
@hey............. 7 ай бұрын
hands down, one of the most useful video on next.js. Subscribed.
@kertofinchi
@kertofinchi 4 ай бұрын
wow man, you need to be ambassdor of vercel, a missile of bottom lines what a implicity sharp gzipped explaination worth every second congratz you pinned as top mentor on next js
@AliAchternaam
@AliAchternaam 7 ай бұрын
You are the man! This channel is a gold mine for people learning NextJs. Can't praise and recommend you enough!!!
@aisdjsiasiodjisoajd7698
@aisdjsiasiodjisoajd7698 7 ай бұрын
Change the title to Mistakes devs make. I’m not a beginner and you made some great points!
@aripanda4209
@aripanda4209 6 ай бұрын
Video is freakishly helpful. Great job buddy.
@abishekbaiju1705
@abishekbaiju1705 7 ай бұрын
Thanks again. The only channel where I am very excited for the new uploaded videos...
@shashank.superone
@shashank.superone 8 ай бұрын
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 8 ай бұрын
Thanks, enjoy!
@shashank.superone
@shashank.superone 8 ай бұрын
​@@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 7 ай бұрын
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.
@ritavdas7570
@ritavdas7570 6 ай бұрын
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! 🚀👏
@osamasafwat9345
@osamasafwat9345 4 ай бұрын
I haven't watched any Next js course. I have just read the documentation and watched your video and I think that I'm pro now. Thank you❤
@universalproblemsolver
@universalproblemsolver 6 ай бұрын
Not even halfway through. AMAZING. I have learned some of the subtle dance between client and server. Thank you, I thought I was going crazy. Question about your course (React + Next): Do you provide a pattern of Client > Next Auth > Server > Database > Back to Client > Edit/Update/Upsert > Revalidate? Or something close? If not, can I request a paid consultation?
@ByteGrad
@ByteGrad 6 ай бұрын
Hi, yes CRUD is part of the course
@universalproblemsolver
@universalproblemsolver 6 ай бұрын
@@ByteGrad Cheers, new subscriber and purchasing course.
@DandifiedYUM
@DandifiedYUM Ай бұрын
Very informative, this video helped me a lot in understanding nextjs, thank you
@lukaszw1
@lukaszw1 7 ай бұрын
This was an awesome knowledge pill! I've watched it in one go and now I understand my code better. Thank you!
@rahulgupta7720
@rahulgupta7720 8 ай бұрын
Highly comprehensive video! Keep going
@erlanggadewasakti
@erlanggadewasakti 6 ай бұрын
you are such kind of superhero , thanks for the lesson
@ztipsamme
@ztipsamme 6 ай бұрын
Perfect timing! I'm currently on week 4 of learning Next.js and this video has been very helpful 🤓🙏🏼
@jfhandfield
@jfhandfield 7 ай бұрын
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
@avi_mukesh
@avi_mukesh 7 ай бұрын
Only about half hour into the video, but already learning a lot. Thank you so much for making this
@036stephanie
@036stephanie Ай бұрын
Great Video! Thanks!! can you share the link to the cache video that you referred multiple times? I can't find it...
@ustav_o
@ustav_o 8 ай бұрын
exactly what i was looking for. keep it up!
@hamdaniash-siddiq5021
@hamdaniash-siddiq5021 2 ай бұрын
What a video. This video covers almost everything about RSC... Thank you... there is one thing left in my head that keeps making me stuck on my project. "where do we save token and refresh token". since my project depends on an external data source that require access token and reguilarly refresh the token with he give refreshToken. In client side, we commonly do it in cookie, and using axios we can pass that token as bearer token, and with the interceptor we refresh the token if necessary. but what is your advice when it comes to server land?
@mounir101
@mounir101 7 ай бұрын
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.
@tfdesign4072
@tfdesign4072 5 ай бұрын
This was unbelievably helpful. Thank you so much 🙏🏴󠁧󠁢󠁷󠁬󠁳󠁿
@tomascerny6567
@tomascerny6567 4 ай бұрын
A deficiency Next.js data caching has is that if the same fetch is called in multiple components on the same page, the first cache miss (e.g. build) will cause all of the components to fetch the same data (in parallel) and all of them will set the cache. There should be an easy way to dedupe the calls happening at the same time and let only one of the components go to the network and set the cache. E.g. first component to trigger the fetch makes others wait. After that, the components can get it from the cache. If the thing being fetched is cheap, yeah no problem, but if it's rate limited or takes a long time, although it can be rendered in parallel on the server, it's still unnecessary work.
@patolorde
@patolorde 8 ай бұрын
thank you very much this is a really great masterclass on next.
@ByteGrad
@ByteGrad 8 ай бұрын
Enjoy!
@yuvrajsarda6660
@yuvrajsarda6660 5 ай бұрын
This is gold material. You explained the mistakes really well. The explanation got a bit repetitive though, maybe you can work on that in the future.
@thedigitalceo
@thedigitalceo 7 ай бұрын
This is pure gold.
@aakashsharma7653
@aakashsharma7653 5 ай бұрын
After understanding all, this is a cool way to make project , we have both client and server components available just we have to decide
@defensivecybercoding
@defensivecybercoding Ай бұрын
This is so helpful!!! Thank you so much. 🙏
@clipartinc
@clipartinc 5 ай бұрын
I find the "use clients" and "use server" weird, NextJS v12 made so much sense, since v13 not so much! Thanks for your videos!!!
@NhanNguyen-yu3gs
@NhanNguyen-yu3gs 20 күн бұрын
the useful tutorial video, i hope you can point out more and more common mistakes that developer can make with Next.js project.
@ByteGrad
@ByteGrad 20 күн бұрын
Thanks, will do!
@noeldolan518
@noeldolan518 5 ай бұрын
Thank you, very informative, watched all the way to the end! 😅😇😎
@insane-works
@insane-works 7 ай бұрын
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!
@vikasni95
@vikasni95 7 ай бұрын
Wow sir you are attempting to do those things which other youtube doesn't focus on thank you sir 🥰🥰😍
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd 7 ай бұрын
thanks man, keep posting videos like this
@hilmiterzi3847
@hilmiterzi3847 7 ай бұрын
This tutorial definetly should have saved thousands of Nextjs devs lol. Was at least 100x better than the nextjs documentation
@sandeepahuja8720
@sandeepahuja8720 4 ай бұрын
I would like to send the user to a different webpage. For example: When a user clicks a button, an API call is made; based on the response, need to redirect user to a different page. I have used useRouter from next/navigation. The page reloads and gets redirected. its not redirecting client side NEXT VERSION: 14.2
@nickwoodward819
@nickwoodward819 6 ай бұрын
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?
@nasko235679
@nasko235679 7 ай бұрын
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 7 ай бұрын
Great to hear, thanks! Will think about your suggestion
@sittshayne4130
@sittshayne4130 6 ай бұрын
Awesome this is a exactly what I needed. Thanks so much for making this video.
@Tszyu01
@Tszyu01 7 ай бұрын
Coming from other ssr frameworks it’s absolutely terrifying using web APIs causes next to entirely collapse without specifying magic words use client. Just something you don’t need to think about in other frameworks.
@ZynthCode
@ZynthCode 8 ай бұрын
Intrusive thoughts: Take a shot every time "component" is being said
@Wulleybully
@Wulleybully 6 ай бұрын
My brother in Christ are you trying to die?
@robboten
@robboten 7 ай бұрын
Really useful knowledge and well explained! So easy to miss some of these when starting with next.js. Thank you!
@sashaBejenari
@sashaBejenari 5 ай бұрын
Thank you! Really useful information.👍
@justinsong3506
@justinsong3506 7 ай бұрын
very deep and easy understanding explaination
@christian_k_e
@christian_k_e 7 ай бұрын
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.
@davidvalverde4378
@davidvalverde4378 2 ай бұрын
I have one question....can you explain the purpose of wrapping a server component with a context provider? Can the context share data to the server component or its just to allow server components to be redered as server? And thank you for this tutorial, it helped me a lot!
@azradreamer6314
@azradreamer6314 7 ай бұрын
Wesley, U r AMAZING! Thank you!
@staticwasabi
@staticwasabi 7 ай бұрын
Thank you for the clear explanations!
@EduarteBDO
@EduarteBDO 7 ай бұрын
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.
@aaliraza4004
@aaliraza4004 7 ай бұрын
Thank you, Wesley, you resolved many of my issues.👍
@Krblshna
@Krblshna 7 ай бұрын
Brilliant video, thanks for hard work
@WebDevCody
@WebDevCody 7 ай бұрын
29 pitfalls.. makes me wonder why I keep using next.
@ByteGrad
@ByteGrad 7 ай бұрын
The learning curve is real, but worth it IMO
@herbertpimentel
@herbertpimentel 5 ай бұрын
Thank you, this was super valuable.
@teetanrobotics5363
@teetanrobotics5363 7 ай бұрын
Content is awesome. Volume needs to 3x atleast
@zathegreat14
@zathegreat14 Ай бұрын
How would you advise using a state management library like zustand to handle, fetch, stored responses, to be used it a page let's say "analytics". You know eventually every component will def be a use client component, since every component needs that stored data. Is it best to ditch the zustand sml and just use the next.js inbuilt async mechanism to fetch those data individually on each components, or ...?
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 216 М.
NextJS Tutorial - All 12 Concepts You Need to Know
44:38
ByteGrad
Рет қаралды 362 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 236 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Error handling in TypeScript. How to avoid exceptions.
6:11
Beyond TypeScript
Рет қаралды 3,1 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 765 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН