Learn Next.js 13 With This One Project

  Рет қаралды 363,816

Web Dev Simplified

Web Dev Simplified

Күн бұрын

React Simplified Course: reactsimplified.com
Next.js is constantly evolving and one of the biggest updates is the addition of server components and server actions. This video goes over all the new Next.js 13 changes and how you can use these new features to create a simple todo list application.
📚 Materials/References:
React Simplified Course: reactsimplified.com
GitHub Code: github.com/WebDevSimplified/n...
Prisma Crash Course Video: • Learn Prisma In 60 Min...
Singleton Video: • Singleton Pattern - De...
🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:44 - Setup
01:50 - Database Setup
05:45 - Remove Boilerplate Code
07:20 - Next.js 13 Routing
08:35 - Home Page
10:41 - Server Component Data Fetching
17:34 - New Todo Page
20:24 - Server Actions (Forms)
25:20 - Server Actions (Buttons)
#NextJS #WDS #ReactJS

Пікірлер: 433
@CleverProgrammer
@CleverProgrammer 9 ай бұрын
I just screenshot 21:52. That tells me EVERYTHING I need to know haha. Dude amazing explanation. I was fighting moving to 13.4 next so hard now I'm fucking excited to hop in!
@chetandivekar1813
@chetandivekar1813 8 ай бұрын
One pro code appreciating another pro coder real bro Code 😂
@noahthegreat190
@noahthegreat190 8 ай бұрын
🤣🤣🤣
@kaviruhapuarachchi8566
@kaviruhapuarachchi8566 4 ай бұрын
noice
@codeofcodedotorg
@codeofcodedotorg 11 ай бұрын
How many todo lists does it take to get a job?
@whITe_dEVIL_06
@whITe_dEVIL_06 11 ай бұрын
😅
@rockNbrain
@rockNbrain 11 ай бұрын
😂
@Sameer.Trivedi
@Sameer.Trivedi 11 ай бұрын
Clearly not enough, you also need ten thousand blog websites.
@Faisal-ge2bk
@Faisal-ge2bk 11 ай бұрын
Yes
@soundrightmusic
@soundrightmusic 11 ай бұрын
8
@chillwavefrequency8108
@chillwavefrequency8108 10 ай бұрын
So glad that you created this channel! I needed a crash course to get started on a new project. Thanks a lot Kyle!
@joak-web
@joak-web 11 ай бұрын
Just found this channel, and honestly didn't think it was possible to condense so much info in such a small amount of time. Well done, mate.
@kevin8798
@kevin8798 11 ай бұрын
This video has a 1.2x speed or something
@Beny123
@Beny123 11 ай бұрын
@@kevin8798 Kyle's videos are very information dense beware. Don't speed up unless you are already familiar with the topic.
@nushydude
@nushydude 6 ай бұрын
Helps when one can type fast 😊
@chantalchen1908
@chantalchen1908 10 ай бұрын
Thank you so much for collecting the otherwise scattered information on learning Next.js. The TODO list example project is great in helping me getting into it as quickly as possible. Looking forward to more of your videos!
@orashusedmund7675
@orashusedmund7675 11 ай бұрын
thanks Kyle, i just started learning next a few days ago and with all these changes i've been so lost with even how to route😮‍💨, u a life saver man
@faizbyp
@faizbyp 11 ай бұрын
thank you very much for the tutorial! i always get confused when it got to server component but you explain it clearly
@keithlamontdavis8047
@keithlamontdavis8047 8 ай бұрын
Another great tutorial. Quality teaching is a special skill and you are great at it. No fluff, easy to follow and thorough all at the same time. Thanks again!
@urnan7499
@urnan7499 11 ай бұрын
I have to say that after hours of browsing and searching, this is the only quick and in depth tutorial i have found. Every other tutorial either is literally useless at explaining whats going on and speeds through everything like a robot or is just too long.
@eliyahutarab4862
@eliyahutarab4862 11 ай бұрын
just amazing the way you can create client side component but the function that is realy like on click/change is been created as a server action on the server just mindblowing
@diegovalencr
@diegovalencr 11 ай бұрын
This was amazingly well summarized. I can't believe you packed so much in a 30 min video and everything was still very clear!
@JBurky15
@JBurky15 11 ай бұрын
Awesome tutorial, I've been really interested in learning Next.js recently and this really helped kick start that process for me. Keep making awesome content, Kyle!
@chrisbolson
@chrisbolson 11 ай бұрын
I’m in exactly the same position. I “know” that I need to learn next.js but I keep putting it off. I think that this excellent tutorial might just be the one that finally makes me do it!
@VIJAY-hg7ei
@VIJAY-hg7ei 11 ай бұрын
@@chrisbolson hey can u help me with this real quick peer class isn't working for me if i check the box the style are not applying
@omerfarukbilgin2157
@omerfarukbilgin2157 11 ай бұрын
​@VIJAY hey it's been a while and you probably solved it, but if you haven't solved it yet, can you share your input tags' codes in the todoItem component? Maybe I'll be able to help.
@2trcvgb
@2trcvgb 11 ай бұрын
I just started to leran Nextjs in my new workplace( re-wrapping react with Next +tailwind) thank you. Just saved your video in my offline youtube repository
@r34ct4
@r34ct4 7 ай бұрын
Wow, your pacing is incredible. I watch it, try to keep up, inevitably fall behind, but then I can just go back and watch back the last few seconds. It's fast, but re-watching is fast too, so I end up learning faster by replaying parts over and over
@kanishkart9923
@kanishkart9923 11 ай бұрын
Kindly keep up the good work kyle. Your videos are really helpful. Looking forward to this video...
@spencerhepworth
@spencerhepworth 11 ай бұрын
I really like that you pay attention to CSS throughout your videos. A lot of tutorial people blow through it and don't emphasize the importance of style. Thank you for making it important.
@Sneaadler
@Sneaadler 10 ай бұрын
Meanwhile: *Him copy pasting in '"css'" and saying "this is not really important" 🤐
@miervaldis42
@miervaldis42 10 ай бұрын
@@Sneaadler He did explain other CSS snippets, like before and after the part you mentioned though 😶
@ohmygoodness6773
@ohmygoodness6773 9 ай бұрын
Well, for his example it's not really important
@GhostkillerPlaysMC
@GhostkillerPlaysMC 9 ай бұрын
@@Sneaadler Probably better that he didn't obsess over every minute detail in the styling as if he were completing a project for $$. Especially since the point of the video has nothing to do with css, I think the amount he did touch on it was great
@Sneaadler
@Sneaadler 9 ай бұрын
@@GhostkillerPlaysMC Yes ofc, I did not want him to
@joss8558
@joss8558 11 ай бұрын
Great tutorial, concise and fast, covered a lot.
@natbud7987
@natbud7987 11 ай бұрын
What I didn't quite understand was, why we need to use "use server" if we're already inside of a server component (as all components in Next.js are server components by default, unless you use "use client" at the top of the component). Then I realized that a "server" component doesn't mean it does any actions on the server side - it just gets pre-rendered before being sent to the client. I'm building my very first full-stack app and understanding the interactions between frontend, backend and the database is a bit challenging.
@AhmadNadeem71
@AhmadNadeem71 11 ай бұрын
Correct me if 'wrong. Not all components are server components. Only files in app folder are server side I think. But the components folder he created is outside app folder.
@virgoeun
@virgoeun 6 ай бұрын
Thanks! I am a beginner and learned controlling server side using only express js but many are saying that next js is getting really popular and I thought there must be reasons for its popularity and now I KNOW! :D so cool - that I could get to learn basic of next js and even typescript as well through your tutorials. Thank you again, and I will keep an eye on your videos and course for sure !!!!!
@mikemisiura3850
@mikemisiura3850 11 ай бұрын
Thanks for this! I was just searching your past videos for a next tutorial a couple weeks ago. 😊 I love your teaching style and explanations.
@AmandaGxagxa
@AmandaGxagxa 11 ай бұрын
Awesome tutorial I have learnt a lot from this in a very shot period. Thank you so much
@avelinecash
@avelinecash 11 ай бұрын
Thanks Kyle. I learned so much from this video. Maybe also add the CRUD operations? That would be great.
@NathanBudd
@NathanBudd 10 ай бұрын
This is really impressive! Looking at Vercel, they don't appear to support sqlite. It would be great if you could do a follow up video to this, showing how you could hook prisma up to something like planetscale.
@AissaDev
@AissaDev Ай бұрын
Thank you kyle, best explanation now next one of my favorites frameworks
@ai_coding
@ai_coding 11 ай бұрын
Awesome tutorial. Great explanation on everything 💯
@AliAliOxenFree
@AliAliOxenFree 11 ай бұрын
Prisma is fantastic at handling dozens of tables with complex relationships! thanks for this vid buddy
@charlescarvalhodeaguiar87
@charlescarvalhodeaguiar87 11 ай бұрын
You are the best Kyle, thanks for everything!
@francisboudreau7524
@francisboudreau7524 11 ай бұрын
Love your pace and straight to the point info… would love if you could make same sort of tutorial with next.js msal and apollo😇😇😇 anyway I’ll keep looking forward to your great work👏🏻👏🏻👏🏻
@nicolettifps
@nicolettifps 11 ай бұрын
Thank you from brazil, make more this short projects
@shubhambagul3127
@shubhambagul3127 4 ай бұрын
Nice learned in one video now can take a look at those docs Thanks man
@carafachera4781
@carafachera4781 11 ай бұрын
THANKS IS WHAT I NEEDED RIGHT NOW 💙
@m1r342b2r
@m1r342b2r 2 ай бұрын
You explain is very clearly! Thank you so much!
@kamilzowczak3607
@kamilzowczak3607 11 ай бұрын
Yes man, we needed it!
@mahfoudh_arous
@mahfoudh_arous 11 ай бұрын
Great Course as usual 🙏 Can you, please, make a course about deployment with Vercel?
@MrDragos696
@MrDragos696 7 ай бұрын
Thank you for this tutorial. I have finished it now. It very cool.
@gini77oo
@gini77oo 11 ай бұрын
THANK YOU! i hope you keep uploading tutos of CRUD, and deployment... !! THANKS LOT!
@ZainRamzan-pt8cm
@ZainRamzan-pt8cm 6 ай бұрын
O man u done a greate job . You packed so much info in a singal video
@pakeeranam
@pakeeranam 9 ай бұрын
Thank you very much for the tutorial. Not sure if anyone has noticed that sometimes, new todo doesn't appear in Todo list after redirecting the page. The createSpecial function always adds new todo in psql table but sometimes not showing on the page.
@estebanfelipe3980
@estebanfelipe3980 11 ай бұрын
Great video as always! How would you deploy and application like this? I would love a video about it.
@user-ku9wm5kg9c
@user-ku9wm5kg9c 11 ай бұрын
Thank you for this video. It was very simple and useful 🤖
@aamirmalik5468
@aamirmalik5468 10 ай бұрын
you r an awesome teacher. keep it up. thank you for so much informative video.
@jnayehsirine6222
@jnayehsirine6222 6 ай бұрын
Great Explanation , thank you for the contribution
@DarkMooN-uh1ih
@DarkMooN-uh1ih 11 ай бұрын
thank you for the tutorial, i learnt a lot
@lukas.webdev
@lukas.webdev 11 ай бұрын
Awesome Video! Thanks for sharing. 😉🔥
@raniaeljouhari9319
@raniaeljouhari9319 11 ай бұрын
Amazing tutorial, as usual !
@kazettique
@kazettique 8 ай бұрын
Thanks for this great tutorial about Next 13. I am going to joining the brand new Next.js recently. (Using Nuxt 3 in my job tho)
@shakiljoy8661
@shakiljoy8661 10 ай бұрын
Very much helping video. It helps me a lot. Thank you so much.
@protosssc790
@protosssc790 11 ай бұрын
Thank you for the hard work to sharing these knowledgeable I’m finally can store something in a DB and fetch it and post it!!!!🎉!!!!!!!!!!!!
@Deligium
@Deligium 11 ай бұрын
thanks for awesome content! good guitars by the way🤘
@johnadriandodge
@johnadriandodge 11 ай бұрын
Jedi K, you are remarkably gifted with an unbelievable amount of Web Technologies!
@dr__ey
@dr__ey 9 ай бұрын
awesome video!! :) thanks so much for this explanation
@RockyWearsAHat
@RockyWearsAHat 8 ай бұрын
Wonderful tutorial for migrating to next from another language, explains alot about the system and how to use it without being bogged down by absolutely tons of unnecessary and outdated info. One question though? How do you get highlighting/autocomplete on variables that will be written inside of classnames? Like classname={‘${inter.className} …other-styles’}, what is the extension for the highlighting on the first part? I can’t find it
@bobevskiboban
@bobevskiboban 4 ай бұрын
ty sir , as always great and simple , salute
@user-kc3ed9ls8c
@user-kc3ed9ls8c 9 ай бұрын
I hope everyone realizes what an incredibly awesome teacher you are. This lesson is so clear, so on point, so perfect I can't thank you enough. My next move is to share this with other developers.
@rafatadebanjo9731
@rafatadebanjo9731 9 ай бұрын
pls where you able to link your prisma. I am having problems with this. It keeps give me errors.can you help?
@ikazak
@ikazak 3 ай бұрын
thanks for the tutorial!
@randygulak9432
@randygulak9432 11 ай бұрын
Great job on this!
@trungtranthanh8912
@trungtranthanh8912 7 ай бұрын
It's a really helpful video. Thank you very much.
@paras.developer
@paras.developer 11 ай бұрын
this was great video now i don't have to mess with core react state
@sajibahmed872
@sajibahmed872 8 ай бұрын
Thank you much. Is it possible to deploy next 13 app route application in share hosting?
@user-rg1yq2vj6o
@user-rg1yq2vj6o 11 ай бұрын
Very helpful with good explanations. Looking to this video : React state management i.e Redux
@redbutton2002
@redbutton2002 10 ай бұрын
Thank you verry much for this lesson!
@bestteam4805
@bestteam4805 11 ай бұрын
More react videos please. Learn React with this one project etc.
@filmyguyyt
@filmyguyyt 11 ай бұрын
oh no i was trying to learn and this guy uploaded it
@tiendang5149
@tiendang5149 10 ай бұрын
Very good speed run :D
@Guilherme-yd8zd
@Guilherme-yd8zd 8 ай бұрын
Amazing tutorial!
@piyushaggarwal5207
@piyushaggarwal5207 11 ай бұрын
Thanks for the video!
@mesfinmulgeta6060
@mesfinmulgeta6060 7 ай бұрын
Thank you BIG brother!
@noname-oo3xr
@noname-oo3xr 8 ай бұрын
Hi Kyle, many thanks for your great content, I followed your JS and React courses and I m looking forward for you to release a Next course. I m struggling for now with the next 13 app router, I can not get any client component to work out properly, I have no user interactivity. Is next 13 app router unstable and flaky ?... I don t see anything I missed following your tutorial, but can t make it work.
@playman69691
@playman69691 11 ай бұрын
Great tutorial! However, at 29:40 min - shouldn’t ‘getTodos()’ to be an async func with “use server” inside as well as toggleTodo(), since it performs a db query on the sever?
@MrVipulLal
@MrVipulLal 8 ай бұрын
Great video. Many 🙏
@sheldonsays9922
@sheldonsays9922 11 ай бұрын
Thanks for this. This was very informational. Just a thought. Could have cut down on explaining the styles. And instead covered other things like SSR, ISR and static. Would have been more complete and made this a one stop vid for all the major parts of NextJS 13+.
@taunado
@taunado 11 ай бұрын
Excellent, thanks!
@noeldolan518
@noeldolan518 5 ай бұрын
Great tutorial! :)
@ylvakarlsson3391
@ylvakarlsson3391 6 ай бұрын
This is just awesome! Love your work Kyle - you have a great skill in being efficient and clear at the same time. I tried to create this project but I don't get the "src"-folder in there. Did I miss a step or is that something I need to create manually? I've trained frontend-development over this last spring but using Next.js is new to me. Thanks!
@vicez_
@vicez_ 6 ай бұрын
I created a new project using Next and the default option for "Would you like to use 'src/' directory?" was set to No, but in this video, the default is Yes, which he accepts. You probably selected 'No' for that option when you created the project. In my experience, using 'src/' is helpful in organizing your files.
@raygrant9673
@raygrant9673 9 ай бұрын
Do you have any preferred tech stack when using Next.js like T3?
@codewithsaj9270
@codewithsaj9270 10 ай бұрын
great video. learned a lot
@miksterdam
@miksterdam 9 ай бұрын
Hi Kyle, what is the hotkey at 16:50 to auto-import? I always remove one letter and re-add it to get the auto import menu.
@haluamen4640
@haluamen4640 8 ай бұрын
amazing explanation.
@hanscesa5678
@hanscesa5678 9 ай бұрын
In 20:52, what's 'currently' experimental? Is it the usage of "use server" or is it the usage of FormData?
@imiebaka
@imiebaka 11 ай бұрын
Kyle never disappoints Nice one
@spongebob93lover
@spongebob93lover 11 ай бұрын
hi, would love to see a video about nextjs 13 with state management, using SWR
@andzi5419
@andzi5419 9 ай бұрын
I liked, commented, scrubscribed. Great content buddy!
@user-qg7jz2xb2j
@user-qg7jz2xb2j 10 ай бұрын
Hi mate, I just wanting to ask how node recompiles automatically once that tsx page has changed at 6:16 For me its not recompiling, even though I saved it. Do you use extensions? Would be nice if you could release the extensions you (probably installed by default) have on your editor. Thanks :)
@zivtamary
@zivtamary 11 ай бұрын
I think it would've been even better if you made the main page client component, and split Todos to a separate server component with skeleton. that way the apps loads fast to the user, and we still get the benefits of ssr
@islambn8962
@islambn8962 5 ай бұрын
but when you add a server component directly to a client component it will be converted to a client component. no? or do you mean with suspense
@rjwhite4424
@rjwhite4424 11 ай бұрын
dude you are a godsend
@rohitsiwachroit
@rohitsiwachroit 10 ай бұрын
Please keep up the great work
@pixyoutube538
@pixyoutube538 10 ай бұрын
Thank you so much bro..
@ludame
@ludame 10 ай бұрын
Thanks for the tutorial I found it helpful. Would of been nice if you added a delete option to round things off but I will give it ago which should cement my knowledge
@sayaksengupta4335
@sayaksengupta4335 9 ай бұрын
async function deleteTodo(id:string) { "use server" await prisma.todo.delete({ where: {id}}) } add this in the TodoItem component, it should work.
@SamK329
@SamK329 6 ай бұрын
@@sayaksengupta4335 I tried doing that but the problem I ran into is that doesn't actually update the UI until I do a page refresh
@TheRealAstro_
@TheRealAstro_ 3 ай бұрын
@@sayaksengupta4335 I know this is months old but I'm pretty sure this doesn't work because you can't use a server component inside a client component. Because TodoItem is a client component you would need to add this function in the main page instead, and then pass it down to TodoItem (just like toggleTodo)
@anatolijignatyo2308
@anatolijignatyo2308 6 ай бұрын
Hi Kyle, could you please share with me the list of extension what you use in VSC, or just that which shows that good hints when you typing class names, attributes etc?
@danghuy3035
@danghuy3035 11 ай бұрын
Hi Kyle. Thanks for the tutorial. I have a question about the Add New functionality. Its clear that as you put it to a new page, and redirect after mutation which will trigger fetch func on Todos page. What if I have Add New as a modal, and no redirection is needed, how to refetch the data? thanks ahead for helping.
@hannah51238
@hannah51238 11 ай бұрын
Thanks for a great video. Please feel free to ignore this question if its in the prisma video that I am about to watch... BUT, in my VS code, none of my schema is colour coded. Is there an extension I don't have or something I've not installed? The colours really help my brain! Thanks again! Edit for anyone else also wondering this... you need to download an extension through VS code.
@henry_sparks
@henry_sparks 9 ай бұрын
I am curios to find out that if you are writing server side code in your component and interacting directly with your DB, does this mean we'll hardly ever need to use react hooks or and other 3rd party libraries for making HTTP requests like axios? Also, could you please do another video regarding best practices for working with next 13 and prisma covering how to use react hooks, managing performance and
@eliuddyn
@eliuddyn 11 ай бұрын
Amazing 🔥🔥
@jasar.ayiken
@jasar.ayiken 10 ай бұрын
Thank u! absolutely made my life eaiser~
@Imaginativeone_DF
@Imaginativeone_DF 9 ай бұрын
At time index 3:14, how did you align those data type monikers?
@elijahandrew6790
@elijahandrew6790 11 ай бұрын
THANK YOU, kYLE!!!
@kevins7621
@kevins7621 9 ай бұрын
What happens if adding new items and todo listings are on the same page? How to update user input simultaneously after user adding it. Good video btw~!
@ThugLifeModafocah
@ThugLifeModafocah 11 ай бұрын
If in the new page you are not using the 'use client', then it is a server component. Even so will you need to put 'use server' in the createTodo function? Or is it going to work without it, since the component is a server component as a whole?
@DevCypherYT
@DevCypherYT 6 ай бұрын
Awesome video 🎉
@bahibrahim101
@bahibrahim101 6 ай бұрын
Kyle's tutorials are the only ones in youtube that I don't dare watch on speedX2
Most Senior React Devs Don’t Know How To Fix This
9:25
Web Dev Simplified
Рет қаралды 182 М.
NextJS Tutorial - All 12 Concepts You Need to Know
44:38
ByteGrad
Рет қаралды 211 М.
Uma Ki Super Power To Dekho 😂
00:15
Uma Bai
Рет қаралды 41 МЛН
How To Actually Get Hired In 2024
10:43
Web Dev Simplified
Рет қаралды 186 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 139 М.
Next.js 14 + Typescript Tutorial | BEGINNERS WELCOMED (1-hour)
50:42
Program With Pags
Рет қаралды 3,6 М.
Learn Prisma In 60 Minutes
59:25
Web Dev Simplified
Рет қаралды 370 М.
Web Developer Roadmap (2024) - Everything is Changing
25:02
ByteGrad
Рет қаралды 232 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
All 29 Next.js Mistakes Beginners Make
1:45:10
ByteGrad
Рет қаралды 32 М.
Next js Tutorial for Beginners | Nextjs 13 (App Router) with TypeScript
1:02:55
Programming with Mosh
Рет қаралды 488 М.
26 Incredible Use Cases for the New GPT-4o
21:58
The AI Advantage
Рет қаралды 9 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 134 М.