React Server Components vs Client Components

Поділитися
Вставка
  • Опубліковано 4 лис 2023
  • Hey Everyone, In this video, we are going to take a look at React Server components and NextJS 14. We'll see what server components are how they are different from normal React Client Component and how they are different from Next's Server Side Rendering.
    Quick Links
    Full Stack Twitter Clone learn.piyushgarg.dev/learn/tw...
    Master Docker learn.piyushgarg.dev/learn/do...
    Video Titles
    - What are React Server Components?
    - What are NextJS Server Components?
    - NextJS App Directory
    - Server Side Rendering vs Server Components.
    Hashtags
    #react #reactjs #nextjs #webdevelopment #fullstackwebdevelopment #fullstackdevelopers #nextjs14 #opensource

КОМЕНТАРІ • 142

  • @technologygadget6570
    @technologygadget6570 7 місяців тому +13

    Mindblowing style of teaching
    Specially the diagram
    🤯🤯

  • @tishukr930
    @tishukr930 7 місяців тому +3

    I was watching shorts for this topic and your video drops with notification, the coincidence 😂

  • @rog0079
    @rog0079 7 місяців тому +4

    Now just need a nextjs project course from you which will cover all the important concepts

  • @niteshmodi5468
    @niteshmodi5468 5 місяців тому +1

    Great Video Brother. Was here to know about hydration, but you made some more concepts clear

  • @shivanggupta7853
    @shivanggupta7853 7 місяців тому +2

    Thankyou Piyush, for clearing my doubt on this topic , You are such a great teacher. 💖💖

  • @mongodb-hm6bl
    @mongodb-hm6bl 3 місяці тому

    great explanation Piyush, thank you so much for the concept clarification

  • @jewelthomas668
    @jewelthomas668 2 місяці тому

    Content delivered was amazing and thank you for the diagram comparison you showed that has helped to understand things alot 😇

  • @mukulsinghbisht2434
    @mukulsinghbisht2434 4 місяці тому

    how nicely you explained , i cant express it, thanks so much

  • @theuniverse8948
    @theuniverse8948 7 місяців тому

    Find your Channel Yesterday and watched SSO video really grate explanation best of luck for your future

  • @JeetKRamnani
    @JeetKRamnani 7 місяців тому +3

    Amazing and easy way of teaching bro i was unable to understand the concept of hydration and difference between server side rendering and server components due to the teacher which is teaching that concepts normaly use heavy techinal jargons which are hard to understand for many people including me but belive me you made it so simple to understand by using very simple words and now my concept is very clear now all thanks to you bro 💞💗

  • @samareshdas767
    @samareshdas767 5 місяців тому

    Such an in depth explanation. Thanks.😊

  • @sachityadav4141
    @sachityadav4141 3 місяці тому

    StraightForward, Nicely Explained!

  • @AbdulHanan-dx3cr
    @AbdulHanan-dx3cr 6 місяців тому

    Great Stuff, keep making videos. Love your videos

  • @AnilKumar-vp1pm
    @AnilKumar-vp1pm 3 місяці тому

    Amazing work and explanation!!

  • @anmoldotx
    @anmoldotx 7 місяців тому +1

    thank you so much piyush for this video, I was getting little confused over this topic, as recently I started to work on my college project where I tried shifting to NextJS from React. It was really helpfull and your way of teaching is so so good man, damm impressive.
    if possible I have one more request, if you can explain the concept of routing (app router) in NextJS like this, as I have worked with react-router-dom and I am comfortable with the flow of it, but the way app router works, weither we talk of params, Link, navigation is little different, I would like to see you way of understanding it once in contrast with react-router-dom.
    and yeah thanks for the good work man, just keep doing it😄😄🤓

  • @mrityunjaysinha
    @mrityunjaysinha 7 місяців тому

    Your contents are amazing Piyush!!

  • @arushraj3807
    @arushraj3807 6 місяців тому

    Your way of teaching is amazing, hats off to u❤

  • @pranavwani
    @pranavwani 7 місяців тому

    Very useful for understanding usage of SSR. Thanks Piyush!

  • @codingintelugu8820
    @codingintelugu8820 6 місяців тому +1

    Great video Piyush. Please consider doing a video on React Server Components payload and how do they stream into clients browsers. This will fill the gap how RSC tree & RCC tree varies and how they bind together

  • @akashddeepchitransh4537
    @akashddeepchitransh4537 7 місяців тому

    Really amazed at the way you teach 💯 just teaching like a wow...

  • @sadik_farhan_
    @sadik_farhan_ 7 місяців тому

    It was truly amazing !
    Love to see more this type of content

  • @gauravvan
    @gauravvan 7 місяців тому +1

    I know some of this stuff already, but listening to this feels like listening to a story.

  • @irshitmukherjee7943
    @irshitmukherjee7943 7 місяців тому

    Your explanations are the best so far......

  • @rameesmohammed4823
    @rameesmohammed4823 7 місяців тому

    Great explanation, remembering old plain php jquery way of building application.🎉

  • @abukhalidrifat3994
    @abukhalidrifat3994 6 місяців тому

    My goodness! What an explanation!!! Thank you so much bro. Take ❤

  • @shaamidrees6036
    @shaamidrees6036 4 місяці тому

    Bro you explained in very easy way
    Great teaching style

  • @subhadeepbanerjee7361
    @subhadeepbanerjee7361 7 місяців тому

    Informative video thanks piyush vaiya❤

  • @omprakashchauhan970
    @omprakashchauhan970 4 місяці тому

    In Depth Explanation Bro ❤
    Keep it Up 😊

  • @sanketgawande3667
    @sanketgawande3667 7 місяців тому

    Nicely explained, thanks 🎉

  • @MdAbdullah-cs7xh
    @MdAbdullah-cs7xh 7 місяців тому

    Amazing tutorial. Thanks dude.

  • @hersheynaik3029
    @hersheynaik3029 7 місяців тому

    wah kamal hogaya. Today itself I was going through the nextJs docs to understand better and viola this video pops up;

  • @MathsWithSatyamPandey
    @MathsWithSatyamPandey 7 місяців тому

    Amazing series sir❤ please continue 🙏🙏

  • @dewanmohammademon
    @dewanmohammademon 6 місяців тому

    It was truly amazing !

  • @FaizSultan430
    @FaizSultan430 7 місяців тому

    Great explanation Piyush thanks ❤ quality content

  • @sriman45
    @sriman45 4 місяці тому

    Love you bro❤❤❤ Thanks for this video.

  • @learner5839
    @learner5839 7 місяців тому

    Sir the way you explain us is too good. Looks like listening to a story.❤❤

  • @gopalbharadva1390
    @gopalbharadva1390 2 місяці тому

    Bro, what an explanation, 1 number.

  • @codeforlifehere
    @codeforlifehere 7 місяців тому

    To be honest, you explained it so well, just please add that slides to the description it will be of great help

  • @joshikroshan5584
    @joshikroshan5584 4 місяці тому

    One of the best explanations ever👏👏👏

  • @iamayushdas
    @iamayushdas 6 місяців тому

    Amazing Explanation brother ❤

  • @entrepreneurcoder2659
    @entrepreneurcoder2659 7 місяців тому

    i liked the explanation.
    thanks for it
    keep bringing such informational videos

  • @AryanSharma-dc4bj
    @AryanSharma-dc4bj 6 місяців тому

    beautiful explanation piyush

  • @moyezrabbani637
    @moyezrabbani637 7 місяців тому

    Amazing Explanation Piyush Sir.

  • @mayanktamrkar308
    @mayanktamrkar308 7 місяців тому

    Amazing, you explained in very easy way , ❤❤❤❤

  • @amjadawan4150
    @amjadawan4150 4 місяці тому

    finally i understood what is client component and what is server component, Thanks dost

  • @pratikbade9634
    @pratikbade9634 5 місяців тому

    Thanks for this one ❤

  • @dfshoikot5904
    @dfshoikot5904 6 місяців тому

    Superb Explanation

  • @rakibulhasan992
    @rakibulhasan992 6 місяців тому

    Thank you so much for your valuable video

  • @snehasish-bhuin
    @snehasish-bhuin 7 місяців тому

    Amazing explained, next topic server Action :)

  • @hustler2693
    @hustler2693 2 місяці тому

    Excellent piyush.. ❤

  • @devprajapati5673
    @devprajapati5673 Місяць тому

    a fourth step can also be added now next uses Server side generation for getting pre rendered pages and ISR for automatic updation and SSR is only used for fetching data on user request it makes more fast how html was made earlier on server now only server has load of rendering server components. and it makes it more fast initially . because it now decrease the load time and routing from one page to other enhances. thank you🙂

  • @mmmm-pd1qx
    @mmmm-pd1qx 7 місяців тому

    Great Explanation.

  • @devisinghlodhi9757
    @devisinghlodhi9757 7 місяців тому

    Awesome explanation ever, ❤❤❤

  • @codingtodev
    @codingtodev 7 місяців тому

    cristal clear information thanks great content

  • @husnainizharkhan
    @husnainizharkhan 7 місяців тому

    It's completely worth it to subscribe to your channel.

  • @shahbazkhalid6950
    @shahbazkhalid6950 7 місяців тому

    Awesome explanation.

  • @digitalizhar
    @digitalizhar 7 місяців тому +1

    Great video sir

  • @asadanik5987
    @asadanik5987 7 місяців тому

    That is an awesome video...take love from Bangladesh

  • @thrifterspoint1002
    @thrifterspoint1002 3 місяці тому

    V nicely explained server side rendering

  • @saiots8651
    @saiots8651 4 місяці тому

    extraordinary explanation Greate brother.

  • @gujaratinimoj3845
    @gujaratinimoj3845 7 місяців тому

    Good topic sir.. very helpful this..

  • @parthghatge2423
    @parthghatge2423 7 місяців тому

    Respect Man, You are too good !!!

  • @talibhusain3335
    @talibhusain3335 29 днів тому

    Really really Amazing video🎉

  • @10zDelek
    @10zDelek 7 місяців тому

    the last point was important thanks for sharing

  • @awesomeshivamshorts
    @awesomeshivamshorts 4 місяці тому

    Nice nice nice.....I love your teaching skill.

  • @alihassan4726
    @alihassan4726 5 місяців тому

    Excelent Explaination

  • @user-zb6ez3el2d
    @user-zb6ez3el2d 7 місяців тому

    Bro ! Loving your contents . It's my humble request to you to make a course on prisma with graphQL.

  • @saurabhu6458
    @saurabhu6458 4 місяці тому

    Thanks man !

  • @Dibyendu_das_96
    @Dibyendu_das_96 7 місяців тому

    Great explanation❤

  • @vipultejyan1575
    @vipultejyan1575 5 місяців тому

    Great explanation

  • @ashokkumawat88
    @ashokkumawat88 7 місяців тому

    Awesome!!✌

  • @nirajbhanushali7693
    @nirajbhanushali7693 7 місяців тому

    Awesome teaching

  • @heartlessgammer7535
    @heartlessgammer7535 3 місяці тому

    Kafi sahi tha ❤❤❤❤❤

  • @nirbhayvora3497
    @nirbhayvora3497 7 місяців тому

    very informative video

  • @rajneeshmishra6969
    @rajneeshmishra6969 4 місяці тому

    Love you bhaiya. You made my concepts about Next.js 14 crystal clear. Subscribed your channel!!!!❤❤❤❤❤❤
    Can you please make a video on how to use Redux with Next.js 14 and especially how to handle SSR in case of Redux? And why do we need making new store for each request, because I read the docs of Redux and it was hella confusing....
    Again, thank you bhaiya

  • @subhamnegi6353
    @subhamnegi6353 7 місяців тому

    Hi piyush your videos is amazing good way to learn stuff can you make video transcoding tutorial to transcode mp4 to hls with different resolution

  • @akshaysingh5535
    @akshaysingh5535 7 місяців тому +3

    Hey Piyush, As you mentioned in Next 13.4 app/ there is DBquery first. So what if the query takes more time!
    What will be displayed in place of data which we want from db ?
    Also, what if we have large file size in server component, will it show blank for few sec ?
    P.S : I'm very new to next so, the questions could seem foolish.😅
    Btw Amazing video, Great explanation 👍 👏

    • @kaustubsingh7981
      @kaustubsingh7981 7 місяців тому

      Potential delays are possible in the dB queries we can use "getServerSideProps" method to fetch data and return a loading state or error state as needed also if possible always try to use graphql api's instead of rest as it only serves what is needed which can reduce loading delays. Hope it was helpful :)

    • @hrushi_borhade
      @hrushi_borhade 6 місяців тому

      we can stream the data and hence the component, using suspense boundary and fallback loading component

  • @iamabhhilashdk
    @iamabhhilashdk 6 місяців тому

    Great Video :)

  • @rohitprajapatirohu6195
    @rohitprajapatirohu6195 7 місяців тому

    Bhaiya your are 🔥

  • @Shiv_the_human_code
    @Shiv_the_human_code 7 місяців тому

    Suggestion: bhai course ek number h aapke bs ek suggestion h ki interview v sath sath lelo interviewbit se , the sur bette se connect kr payenge

  • @RishiRajxtrim
    @RishiRajxtrim 7 місяців тому

    Gratitude!!🙂🙏💯

  • @oneloop6902
    @oneloop6902 7 місяців тому

    too good!!!

  • @afrazali4141
    @afrazali4141 7 місяців тому

    All doubt's clear thanks a lot bro love from pakistan

  • @sheikhfajlayrabbi6070
    @sheikhfajlayrabbi6070 7 місяців тому

    great video ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

  • @amitdubey2209
    @amitdubey2209 7 місяців тому

    best till now!!

  • @harkeshyadav2959
    @harkeshyadav2959 7 місяців тому +1

    Wonderfull video brother. I have one question if server components are rendered on server side only then how the data of server components will be transfered from server to the browser previously it was coming inside the js bundle but now as it is removed from js bundle then how tstatic html of that which dont have interactability will come to browser? Because if we inspect in browser we will the html tree of that server component but as you mentioned it will not come in js bundle then how browser is recieving that?

  • @charuwaka1
    @charuwaka1 4 місяці тому

    Client Components have access to browser APIs, like geolocation or localStorage, allowing you to build UI for specific use cases.

  • @b5fw6jg7
    @b5fw6jg7 7 місяців тому +1

    Please explain inline "use server" and server actions as well.

  • @saiots8651
    @saiots8651 4 місяці тому

    I am waiting for the next js course with typescript and redux toolkit query from piyush bhai.

  • @vaibhavwadhavane874
    @vaibhavwadhavane874 7 місяців тому +1

    please make a full nextjs course with one full stack project

  • @copilotcoder
    @copilotcoder 7 місяців тому +1

    If we are fetching data in client component we can store it in state snd use it multiple times.... how can we fetch data and use it multiple times

  • @_rhythmsaha
    @_rhythmsaha 7 місяців тому +2

    the more component we render in server the server will get slower, In this scenario nextjs static generation and client side components are great option as my opinion

    • @shubhankartrivedi
      @shubhankartrivedi 7 місяців тому

      Yes it is mostly used for static pages like Blogs/Articles.

    • @shoaib3103
      @shoaib3103 6 місяців тому

      The thing is you cannot control the user's machine but you have the option to control a strong machine server

  • @prakharsinha4145
    @prakharsinha4145 5 місяців тому

    hey piyush do share your exacli draw content in the description, it would save lots of our time

  • @user-hk6jp8ol9l
    @user-hk6jp8ol9l 7 місяців тому

    nice

  • @aditimahabole1761
    @aditimahabole1761 5 місяців тому

    you aree the besttttttttt wowwwwwww

  • @phantomcatprojects8546
    @phantomcatprojects8546 7 місяців тому

    Will the context provider make everthing underneath a client side rendered components

  • @delwerhossain7979
    @delwerhossain7979 7 місяців тому

    ❤❤

  • @Yasinafridi
    @Yasinafridi 7 місяців тому

    Please make a playlist on CI/CD pipeline

  • @as_if
    @as_if 3 місяці тому

    Wow

  • @rahulhooda1745
    @rahulhooda1745 7 місяців тому

    brother pls make a video on react vs remix, the diffrence and which one is better.