Next.js 13 - The Basics

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 576

  • @berkinanik
    @berkinanik 2 ปีที่แล้ว +949

    the most efficient 9 mins of 2022, thanks Jeff!

    • @monzerfaisal3673
      @monzerfaisal3673 2 ปีที่แล้ว +8

      So efficient it's not even 9 mins!

    •  ปีที่แล้ว +5

      You can build a career out of this 9 minutes.

    • @Arcane_Dragon878
      @Arcane_Dragon878 ปีที่แล้ว +4

      My names jeff

    • @cibulis5347
      @cibulis5347 5 หลายเดือนก่อน

      Thanks, Peter

  • @hugolu1630
    @hugolu1630 ปีที่แล้ว +18

    Finally though a video / tutorial that actually starts with the thing we need to understand which is "how do I structure the app and how does Next js interpret the structure"

  • @Keidakira
    @Keidakira 2 ปีที่แล้ว +130

    "It's not my fault that it didn't work. Go and read the docs" is a nice way of saying "It worked on my machine!" 😂 Love this guy!

  • @kasper_573
    @kasper_573 2 ปีที่แล้ว +139

    ”I’ll be using typescript”, then proceeds to assert any for basically everything you’d use typescript for 😂

    • @unforgettable31
      @unforgettable31 10 หลายเดือนก่อน +5

      At my work we have a big enterprise app that’s like 100k of lines of code, and the only types we (well the former team, not me) use are numbers, strings and booleans. NOTHING ELSE. Sometimes you’ll also find something funny uuid’s declared as booleans.

    • @tangocukedi1
      @tangocukedi1 2 หลายเดือนก่อน +1

      and no function return types

    • @billal2731
      @billal2731 หลายเดือนก่อน

      everyone does that tbh

  • @nizl47
    @nizl47 2 ปีที่แล้ว +104

    this was an awesome first introduction - I really want to learn something new after programming with react/redux for the past years and this really helps to get me going and try this out for my own page. Thanks!!

    • @anyadatzaklatszjutub
      @anyadatzaklatszjutub 2 ปีที่แล้ว

      go get some!

    • @semyaza555
      @semyaza555 2 ปีที่แล้ว +2

      I had no idea people were still using redux.

    • @the-iter8
      @the-iter8 2 ปีที่แล้ว

      @@semyaza555 It's like literally all over the place are you living under a rock bro

    • @semyaza555
      @semyaza555 2 ปีที่แล้ว

      @@the-iter8 Living under a rock? More like ahead of the curve. There are *far* better libraries for state management now.

    • @chtoho4043
      @chtoho4043 2 ปีที่แล้ว

      ​@@semyaza555 Redux is the og, have some respect a hole

  • @snehasisdebbarman3106
    @snehasisdebbarman3106 2 ปีที่แล้ว +28

    Only my guy fireship can explained whole javascript frameworks under 10 mins . Kudos.. your 10 mins tutorials are equivalent to other's 10 hours tutorial

  • @bossdaily5575
    @bossdaily5575 2 ปีที่แล้ว +228

    This is the framework of all time

    • @willinton06
      @willinton06 2 ปีที่แล้ว +24

      It’s nexing time

    • @WatFat
      @WatFat 2 ปีที่แล้ว +44

      for next 2 weeks

    • @AmxCsifier
      @AmxCsifier 2 ปีที่แล้ว +12

      The real next framework is SvelteKit

    • @alanraftel5033
      @alanraftel5033 2 ปีที่แล้ว +9

      Wait next week for the new disruptive framework.

    • @theriser8751
      @theriser8751 2 ปีที่แล้ว +7

      L framework, my brand new blazingly fast real deal life changer faster than any thing framework called "Noxt" is probably better, releasing next week

  • @hfuhruhurr
    @hfuhruhurr 2 ปีที่แล้ว +1

    9 minutes to watch, 90 minutes to understand. love it! thx for these.

  • @augustineakotolarbi-ampofo6769
    @augustineakotolarbi-ampofo6769 7 หลายเดือนก่อน +13

    How does this guy explain a whole framework in 8mins 59 seconds? How does he keep getting away with this? This is pure talent!!! I love it. Great job man

  • @uzairhaider1016
    @uzairhaider1016 2 ปีที่แล้ว +2

    I was building a hobby project. a task managemnet system .using next, tailwind and mongosb. i started six months ago in Next 12, implemented authentication system, added project and task in db. then i got busy in my job. last week I migrated my app to Next 13. and got number of Hydration errors.
    After your video I realized I have to move my pages from pages to app folder. I read the documentation but the way you explained (about) , [about] and about. Wonderful.! thanks.

  • @dkaigorodov
    @dkaigorodov 2 ปีที่แล้ว +1

    It is the first time I hear about PocketBase, feels like it is the most valueable thing in this video for me.

  • @berrodev
    @berrodev 2 ปีที่แล้ว

    What else can i say my whole youtube channel is inspired from this legend.

  • @mattnield
    @mattnield 2 ปีที่แล้ว +1

    Brillian, I'm so gald I came across this. I was very much feeling like the puppy at the beginning with the v13 release, you've answered my questions/concerns much quicker than reading the docs did!

  • @Patrity
    @Patrity 2 ปีที่แล้ว +71

    You covered so much in only 9 minutes, amazing work!

  • @omarimai7428
    @omarimai7428 ปีที่แล้ว

    weeks of searching squeezed into one video , thank you a lot

  • @creepychris420
    @creepychris420 2 ปีที่แล้ว +6

    when i watch you paste in chunks of code like fetch settings (or replay record whatever) it makes me realise how much effort goes into making these videos. you don't get 9m of a++ contint from nothing

  • @xyz-ey7ul
    @xyz-ey7ul 2 ปีที่แล้ว +1

    next js had to end the year in style. what a gift.

  • @klukiyan
    @klukiyan 2 ปีที่แล้ว +1

    this is trully epic. the ratio of useful information /minute is booming. I had to pause the video several times to give my brain a break to digest all the cool info :)

  • @sommmtoooo
    @sommmtoooo 2 ปีที่แล้ว +1

    Thanks Jeff, I was about watching an outdated hour+ tutorial on nextjs. You saved me and gave me all I needed to hear 🤗

  • @FilipeLeonardoM
    @FilipeLeonardoM 2 ปีที่แล้ว +3

    it's amazing like in a video of 9 minutes you can create a huge quantity of apps, thank u for update, keep bringing these wonders to us

  • @aryankatebain
    @aryankatebain 2 ปีที่แล้ว +3

    I was waiting for this video since Next 13 came out last week

  • @ThatTrueCJ201
    @ThatTrueCJ201 2 ปีที่แล้ว +8

    I enjoy the longer form content on this channel compared to your main channel! Thanks for your continuous education 🔥

  • @diegoia1970
    @diegoia1970 ปีที่แล้ว

    That "hola mundo" in the example notes just won me!

  • @ShermanMavhungu
    @ShermanMavhungu 5 หลายเดือนก่อน +1

    finally someone who goes straight to the point

  • @rutchjohnson
    @rutchjohnson 2 ปีที่แล้ว +3

    love love love these! Been waiting for some NEXT.js 13 updates from Fireship :)

  • @hugodsa89
    @hugodsa89 2 ปีที่แล้ว +12

    This guy is a machine. Holy shit man.

    • @hugodsa89
      @hugodsa89 2 ปีที่แล้ว +4

      No but seriously, I have noticed you've burnt out a few times before. Are you keeping this up at a healthy rate? Just a genuinely concerned viewer and fellow developer.

  • @johnpapathanasis3248
    @johnpapathanasis3248 2 ปีที่แล้ว

    I mainly my work ends after the infrastructure stuff (sometmes devops) but I watch your videos anyway. Its fun to see what the next guy will try to do on a system. So practicaly as an outsider this framework is the one that impresed me the most. Very nice...

  • @phucnguyen0110
    @phucnguyen0110 2 ปีที่แล้ว

    The perfect way to enjoy breakfast and then go to the desk and do some testing, thanks Jeff!

  • @abhishekvishwakarma9045
    @abhishekvishwakarma9045 2 ปีที่แล้ว +15

    Thanks Jeff, you made Next 13 so easy to understand 😌🔥excited for its stable release 🤩

  • @AkshayKumar-kz6zh
    @AkshayKumar-kz6zh 2 ปีที่แล้ว

    Deployed a Next.js 12 app to prod on Monday. Seeing this video today. Nice

  • @R3mix97
    @R3mix97 2 ปีที่แล้ว +3

    Thanks so much for this! I'm building my college senior project and have been trying to deal with a sizable full stack site just using plain express with API interactions. I've never used Next before and think it'll help me out a lot!

  • @tomasburian6550
    @tomasburian6550 2 ปีที่แล้ว

    That router refresh is nothing short of awesome. Love that function.

    • @unforgettable31
      @unforgettable31 10 หลายเดือนก่อน

      Fancy schmany way of avoiding real state management.

  • @ScaerieTale
    @ScaerieTale 2 ปีที่แล้ว +37

    "When Angular 1 went to Angular 2, when Vue 2 went to Vue 3" and when C# 9 went to C# 10. That was a *huge* pain in the ascii. Year later me has a much better grasp of React and JS than year ago me had on C#, but I still really appreciate this guide. I've been wanting to get into Next, but held off to see what was coming in 13, so this is great for me!

    • @davidho1258
      @davidho1258 2 ปีที่แล้ว +8

      pain in the ascii 😂

    • @masterflitzer
      @masterflitzer 2 ปีที่แล้ว +4

      wdym c#9 to c#10? it's the best thing that could happen to the language and also it's 100% compatible with previous code

    • @thepaulcraft957
      @thepaulcraft957 2 ปีที่แล้ว

      Python 2 to 3 was the real shit

  • @The_SSS
    @The_SSS 2 ปีที่แล้ว +1

    I didnt know how to data fetch in dynamic routes but this made it clear!! Thank you so much!!

  • @ReyHaynes
    @ReyHaynes 2 ปีที่แล้ว +20

    Sheesh...what an effective introductive tutorial.
    I'm looking into creating some tutorials soon, and you are an inspiration for getting straight to the point!

    • @scribl1
      @scribl1 ปีที่แล้ว

      Yeah, I like the way he cuts between chunks of code, instead of filming himself typing everything. It involves a lot more pausing for a first watch/code-along, but it makes the video sooo much easier to use for later reference. I have some tutorials I want to make for Godot, and this is definitely inspiring me as well.

  • @JLarky
    @JLarky 2 ปีที่แล้ว +3

    4:31 let's use typescript for this tutorial. Processeds to "as any[]" right away :-)

  • @brad7957
    @brad7957 2 ปีที่แล้ว +3

    This is awesome. Being able to separate the loading and error pages is really neat. I hope Nuxt can get something similar!

  • @Baraka0369
    @Baraka0369 2 ปีที่แล้ว +4

    Dude, thanks a lot for Pocketbase... Was looking for an alternative to Strapi, you rock... Simple, realtime out of the box, file storage, authentication.....
    My man 💘💘

    • @marccawood
      @marccawood ปีที่แล้ว +1

      Strapi is a CMS, not the same as a database.

  • @teacatsup
    @teacatsup 2 ปีที่แล้ว

    I'm loving the tiny file name corrections

  • @jaejonmalloy1341
    @jaejonmalloy1341 ปีที่แล้ว +1

    Seriously, if efficiency was a drug, Jeff is the only dealer I'd go to, when I'm in need of that pure, uncut, fire ass shit. 🤘

  • @JackStepanyan
    @JackStepanyan ปีที่แล้ว +1

    Great video, one note. At 7:40 you mention that 'use client' is used to tell Next not to render the component on the server, rather only on the browser, but that is not true. It still will be partially rendered on the server (static parts) and dynamic parts will be rendered on the client.

  • @cryptic1692
    @cryptic1692 2 ปีที่แล้ว

    the most efficient tutorial ever keep it up jeff

  • @whkoh7619
    @whkoh7619 2 ปีที่แล้ว

    Extremely cool Jeff! Needed a frontend tutorial to go with PocketBase and this is IT!

  • @juhlooo
    @juhlooo ปีที่แล้ว

    wow just learned react and this makes life so much easier for smaller projects

  • @kingshukcs
    @kingshukcs 2 ปีที่แล้ว +1

    You make me wanna actually sit down and learn NEXT.

  • @yt-sh
    @yt-sh ปีที่แล้ว

    👏👏👏, this should have millions of views!

  • @MasayaShida
    @MasayaShida 2 ปีที่แล้ว

    How have i not heard of Pocketbase before! Great video

  • @n1hkrc
    @n1hkrc ปีที่แล้ว

    Thank you very much 😁 you have the best short courses on youtube 👍😎

  • @CarlosIsaacRSison
    @CarlosIsaacRSison ปีที่แล้ว

    And you just got a new subscriber, fast and very informative, I love this channel

  • @chawza8402
    @chawza8402 2 ปีที่แล้ว

    I just tried NextJs but still using the previous method and it's really awesome. I hope the new way won't cause problems my newly created project since I have a use of it

  • @PhilipAlexanderHassialis
    @PhilipAlexanderHassialis 2 ปีที่แล้ว +2

    An excellent introduction! Amazing video, well done Jeff!

  • @arno.claude
    @arno.claude 2 ปีที่แล้ว +1

    This was really good for a beginner to Next like me! Thanks, Jeff!

  • @julianism.
    @julianism. 4 หลายเดือนก่อน

    wow, late to the party but as someone who doesn't specialize in FE work, I see how this is easy to follow. Aside from that, it's great to see how tech has become easier to use, this pocketbase is nice!

  • @hamzakyamanywa9792
    @hamzakyamanywa9792 2 ปีที่แล้ว

    First next 13 tutorial and its fire 🔥 🔥

  • @CodeWithAhsan
    @CodeWithAhsan 2 ปีที่แล้ว +9

    Hey Jeff, at 8:45, you say “without a full page refresh “. But I saw the browser reload button getting trigger and I assume it reloads the entire page for that. Also, the form got reset without any additional code.
    Does that mean the user would lose the state of the page? Especially when there could be different queries for different layouts in the same page

    • @khaledsanny4817
      @khaledsanny4817 2 ปีที่แล้ว +2

      as react team is paving the way to "reusable state" to enable resilient components w/ react18.. maybe that is why it behave like that.. Try to see if the state is lost or not... you can use ReactQuery or Swr to optimistically update the server state without you doing much... (well i guess)

    • @abhinav.sharma
      @abhinav.sharma 2 ปีที่แล้ว

      Form got reset because he added setTitle(''); and setContent(''), you can catch a glimpse of it when he is writing form.

    • @JelleJelleJelle
      @JelleJelleJelle 2 ปีที่แล้ว +2

      It is indeed a page refresh. Seems hacky to me.

    • @GahMega
      @GahMega 2 ปีที่แล้ว +1

      This is probably due to the default behaviour of the FormSubmit. An event.preventDefault should do the trick, right ?

    • @kuravje484
      @kuravje484 2 ปีที่แล้ว

      @@GahMega it seems like it does

  • @TradeWithJon
    @TradeWithJon ปีที่แล้ว

    Man, Pocketbase is exactly what I was looking for, this is awesome, thanks!

  • @ericdimarzio5756
    @ericdimarzio5756 ปีที่แล้ว +1

    At 4:43 you skip over adding import Link from 'next/link'. Thank you for providing the source code and such an awesome video. Looking forward to the rest of the course!

    • @iRobotray
      @iRobotray ปีที่แล้ว

      I ran into this problem too, I'm new to Next.js.

  • @richardobaze3249
    @richardobaze3249 ปีที่แล้ว +1

    This was absolutely brilliant. Everything i needed to know plus it was concise and very understandable. Thank you so much

  • @codewithguillaume
    @codewithguillaume 2 ปีที่แล้ว

    God I did almost exactly the same video :) Thanks for this Fireship, you are the best !

  • @GoldenBeholden
    @GoldenBeholden 2 ปีที่แล้ว +156

    I love these programming videos for programmers -- 9 minutes really is plenty if you don't bother explaining what a variable is. Could you do one of these for SvelteKit? They recently updated some of their routing file structure as well.

    • @explosionimplosion4679
      @explosionimplosion4679 2 ปีที่แล้ว +2

      Yes PLEASE!! I've mainly moved away from SvelteKit because of this

    • @maskman4821
      @maskman4821 2 ปีที่แล้ว

      @@explosionimplosion4679 just do both man 😅

    • @didiercatz
      @didiercatz ปีที่แล้ว

      I'd highly suggest you give it another try. Having worked on many larger applications with SvelteKit, the 'new' system actually much more productive than the old system. Especially with automatic types and colocation@@explosionimplosion4679

  • @bunnihilator
    @bunnihilator 2 ปีที่แล้ว

    Very good. I like concise tutorials. Gets me all the essential ideas of a technology

  • @mooopplplp5581
    @mooopplplp5581 2 ปีที่แล้ว +1

    I was always checing channel wating that video , thanks man

  • @AndersonMancini
    @AndersonMancini 2 ปีที่แล้ว

    Wow. I felt like Neo from the Matrix learning kung-fu 😎. Amazing tutorial hahah. Congrats.

  • @raymondmichael4987
    @raymondmichael4987 2 ปีที่แล้ว

    Thanks, I’m waiting at alpha station, when Nextjs bus gets here I’ll jump in

  • @surajgupta-vb6uz
    @surajgupta-vb6uz 2 ปีที่แล้ว

    this is like a treasure for beginners

  • @yo1414
    @yo1414 2 ปีที่แล้ว

    Very good tutorial - direct and to the point! Thank you!

  • @toshirohitsugaya1465
    @toshirohitsugaya1465 ปีที่แล้ว

    Thank you so much, just wanted a quick intro and this was perfect.

  • @angelhdzdev
    @angelhdzdev 2 ปีที่แล้ว +7

    I hope you give Nuxt 3 and Vue the same attention you have been giving to Next and React.

  • @EmielvanGoor
    @EmielvanGoor 2 ปีที่แล้ว

    I'm loving Next 13! Great improvements!

    • @LarsRyeJeppesen
      @LarsRyeJeppesen 2 ปีที่แล้ว

      I can't get most providers working with the new /app structure yet - next-translate for example.

  • @faizanahmed9304
    @faizanahmed9304 2 ปีที่แล้ว

    great tutorial on Next 13. Thank you Jeff!!

  • @pradikapratama9895
    @pradikapratama9895 2 ปีที่แล้ว

    the most valuable 9 mins of my life

  • @iCodeArtisan
    @iCodeArtisan 2 ปีที่แล้ว

    Wow! I learnt a whole lot in just 9 minutes

  • @david.thomas.108
    @david.thomas.108 11 หลายเดือนก่อน

    Great clear and succinct overview. Thanks!

  • @Sulls58
    @Sulls58 ปีที่แล้ว

    absolutely crushed it. well done!

  • @ramandev_
    @ramandev_ 2 ปีที่แล้ว

    I felt in love with pocket base

  • @BrockDouglas
    @BrockDouglas ปีที่แล้ว +2

    I wish some of these beginner courses were actually for beginners.

  • @tangda
    @tangda 7 หลายเดือนก่อน

    "I like it dangerously" kills me

  • @anton-georgeliacu9384
    @anton-georgeliacu9384 2 ปีที่แล้ว

    The amount of info this guy puts in a single video is insane…I wonder how many hours of work for a 9 min video…

  • @zhotpotrecipe
    @zhotpotrecipe 2 ปีที่แล้ว

    I can't believe that I don't used react or next in past but still understood what you said

  • @Stormface16
    @Stormface16 2 ปีที่แล้ว +2

    Incredible amount of high value info in such a small amount of time, thanks!
    What about the other way around as well? Have something production/enterprise ready in Next oder React and go over the best practices? Many TH-cam tutorials or courses only go over the basics. Would be highly appreciated :)

  • @LarsRyeJeppesen
    @LarsRyeJeppesen 2 ปีที่แล้ว +2

    FYI: PostCSS and Tailwind are not yet supported by TurboPack.

  • @italktocomputers1901
    @italktocomputers1901 2 ปีที่แล้ว

    used remix for a big enterprise project. next js just added most of what made remix remix. powerful!

  • @brayan_joan
    @brayan_joan 2 ปีที่แล้ว

    claro , breve y conciso como simpre, es una joya tu canal

  • @myanch200
    @myanch200 ปีที่แล้ว +4

    Why would you use typescript if you will put any for types everywhere?

  • @HendriSchoeman
    @HendriSchoeman 2 ปีที่แล้ว +2

    Awesome content as always. Nicely done!

  • @Davidlavieri
    @Davidlavieri 2 ปีที่แล้ว +2

    We went from separating front end and backend and now we are getting back into it. Same shit with tailwind from BEM to inline atyling. Web Deployment is not really evolving anymore is just a war of frameworks and tools trying to solve a problem unnecessarily

  • @_sujit004
    @_sujit004 6 หลายเดือนก่อน

    Now I am going to add nextjs in my resume

  • @Altroo
    @Altroo 2 ปีที่แล้ว +1

    Didn't know u had another channel jeff.
    U thought you could hide from us bru 😂

  • @the_real_cookiez
    @the_real_cookiez ปีที่แล้ว

    Cool to see how they use a similar routing system as Dash!

  • @tithos
    @tithos 2 ปีที่แล้ว

    Thank you for doing this so quick!

  • @DiegoBM
    @DiegoBM 2 ปีที่แล้ว +3

    I've a feeling that this tutorial series is going to break the internet

  • @ghevisartor6005
    @ghevisartor6005 2 ปีที่แล้ว

    amazin video, I normally work with blazor, some things are very similar. Will try next.js around for sure.

  • @nash-nk-p
    @nash-nk-p 2 ปีที่แล้ว

    Thank you, Jeff. I've learned a lot!

  • @younggazer5852
    @younggazer5852 2 ปีที่แล้ว +3

    "I will be using typescript with the ts-flag"
    Proceeds to write code as if it were javascript, lol

  • @ibrahimmohammed3484
    @ibrahimmohammed3484 2 ปีที่แล้ว

    great video, saved for later access

  • @harshdeepbilaiya3076
    @harshdeepbilaiya3076 2 ปีที่แล้ว

    thanks! i am a full stack developer now.

  • @jeroenw9853
    @jeroenw9853 2 ปีที่แล้ว

    Welcome back, PHP!

  • @the-first-joe
    @the-first-joe ปีที่แล้ว +5

    After adding notes/[id]/error.tsx I was getting the error: "Functions cannot be passed directly to Client Components because they're not serializable."
    Adding 'use client' to the top of error.tsx got me past it.

    • @inqzz
      @inqzz ปีที่แล้ว +3

      THANK YOU SO MUCH

    • @gonzalomolina6042
      @gonzalomolina6042 ปีที่แล้ว +2

      Upvoting this so it goes up in the relevant comments. Thanks!!

    • @russelschuster8036
      @russelschuster8036 ปีที่แล้ว +2

      You're awesome man! I spent half a day reading documents, rewriting code and what not. If you ever make a channel, let me know, I will be the first to subscribe.

    • @the-first-joe
      @the-first-joe ปีที่แล้ว +1

      @@russelschuster8036 Glad you found it useful. No plans for a channel for me but what got me started making these comments was finding answers through others comments on other videos. So pass it on when you find your way through this kind of shizah. :D

  • @maxwellmarovich2975
    @maxwellmarovich2975 2 ปีที่แล้ว +2

    Hey folks, in order for this to work, you have to add this to your next.config.js file:
    const nextConfig = {
    reactStrictMode: true,
    experimental: {
    appDir: true
    }
    }

    • @Blue-bz6dm
      @Blue-bz6dm 2 ปีที่แล้ว

      TY!!

    • @anoniem012
      @anoniem012 ปีที่แล้ว

      What does it do? Does it enable not refreshing whole site?

  • @bensacola1208
    @bensacola1208 11 หลายเดือนก่อน

    in the create note function you should pass the event argument and call preventDetault() otherwise the page will trigger a refresh