React Server Components vs Client Components

Поделиться
HTML-код
  • Опубликовано: 4 сен 2024
  • 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.piyushga...
    Master Docker learn.piyushga...
    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

Комментарии • 158

  • @technologygadget6570
    @technologygadget6570 10 месяцев назад +19

    Mindblowing style of teaching
    Specially the diagram
    🤯🤯

  • @izazahamedmallick1383
    @izazahamedmallick1383 3 часа назад

    i am watched this before my interview and this diagram in my head i am super confident about this concept....thank you💛💛

  • @tishukr930
    @tishukr930 10 месяцев назад +6

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

  • @gauravvan
    @gauravvan 10 месяцев назад +1

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

  • @shivanggupta7853
    @shivanggupta7853 10 месяцев назад +4

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

  • @rog0079
    @rog0079 10 месяцев назад +4

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

  • @codingintelugu8820
    @codingintelugu8820 8 месяцев назад +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

  • @JeetKRamnani
    @JeetKRamnani 10 месяцев назад +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 💞💗

  • @noobdotx
    @noobdotx 10 месяцев назад +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😄😄🤓

  • @user-pc7xz7bu3p
    @user-pc7xz7bu3p Месяц назад

    Thanks bro . very well explained not understood the difference.Earlier it was alwasy confusing

  • @hersheynaik3029
    @hersheynaik3029 10 месяцев назад

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

  • @shreyavarma9124
    @shreyavarma9124 19 дней назад

    This is honestly the best explanation. Thanks!

  • @JashanKapoor-ug8ih
    @JashanKapoor-ug8ih Месяц назад

    Before watching this video I was thinking that I might waste 27 mins but I gave it a shot and boom!
    This is the by far best explanation I have encountered. Thinking of checking more videos of yours.
    And at last how can I forget to say Thanks bro!!

  • @codeforlifehere
    @codeforlifehere 9 месяцев назад

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

  • @devprajapati5673
    @devprajapati5673 3 месяца назад

    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🙂

  • @radhasharma2407
    @radhasharma2407 2 месяца назад

    you literally made my concepts crystal clear 💯

  • @niteshmodi5468
    @niteshmodi5468 7 месяцев назад +1

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

  • @iqramajid8491
    @iqramajid8491 Месяц назад

    Thank you so much for your amazing video .Your clear explanation really helped me understand it better.💕

  • @theuniverse8948
    @theuniverse8948 10 месяцев назад

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

  • @mohdshahbaz574
    @mohdshahbaz574 19 дней назад

    Very nice way to explain client and server components ❤

  • @technotes721
    @technotes721 Месяц назад

    you cleared my confusion Thank Piyush!

  • @amjadawan4150
    @amjadawan4150 7 месяцев назад

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

  • @rameesmohammed4823
    @rameesmohammed4823 10 месяцев назад

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

  • @husnainizharkhan
    @husnainizharkhan 10 месяцев назад

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

  • @copilotcoder
    @copilotcoder 10 месяцев назад +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

  • @shaamidrees6036
    @shaamidrees6036 6 месяцев назад

    Bro you explained in very easy way
    Great teaching style

  • @akshaysingh5535
    @akshaysingh5535 10 месяцев назад +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 10 месяцев назад

      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 8 месяцев назад

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

  • @sam_sharma24
    @sam_sharma24 Месяц назад

    damn explaination of piyush are just next level

  • @rajneeshmishra6969
    @rajneeshmishra6969 7 месяцев назад

    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

  • @jewelthomas668
    @jewelthomas668 4 месяца назад

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

  • @rehanhas
    @rehanhas 16 часов назад

    Perfectly explained ❤

  • @vaibhavwadhavane874
    @vaibhavwadhavane874 10 месяцев назад +1

    please make a full nextjs course with one full stack project

  • @learner5839
    @learner5839 10 месяцев назад

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

  • @gopalbharadva1390
    @gopalbharadva1390 4 месяца назад

    Bro, what an explanation, 1 number.

  • @Shiv_the_human_code
    @Shiv_the_human_code 10 месяцев назад

    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

  • @harkeshyadav2959
    @harkeshyadav2959 9 месяцев назад +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?

  • @prakharsinha4145
    @prakharsinha4145 8 месяцев назад

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

  • @saiots8651
    @saiots8651 6 месяцев назад

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

  • @mukulsinghbisht2434
    @mukulsinghbisht2434 6 месяцев назад

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

  • @pranavwani
    @pranavwani 10 месяцев назад

    Very useful for understanding usage of SSR. Thanks Piyush!

  • @mongodb-hm6bl
    @mongodb-hm6bl 5 месяцев назад

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

  • @shailesh2001bxr
    @shailesh2001bxr 23 дня назад

    this is very helpful for SSR and CSR for understood and one thing tell me that whenever we have multiple event and actions then we will create a separate file for clicking or any actions ?.

  • @_rhythmsaha
    @_rhythmsaha 10 месяцев назад +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 10 месяцев назад

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

    • @shoaib3103
      @shoaib3103 9 месяцев назад

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

  • @arushraj3807
    @arushraj3807 8 месяцев назад

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

  • @subhamnegi6353
    @subhamnegi6353 10 месяцев назад

    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

  • @yashpawar9585
    @yashpawar9585 9 дней назад

    Very well explained... thanks!

  • @b5fw6jg7
    @b5fw6jg7 10 месяцев назад +1

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

  • @user-zb6ez3el2d
    @user-zb6ez3el2d 9 месяцев назад

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

  • @charuwaka1
    @charuwaka1 6 месяцев назад

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

  • @thrifterspoint1002
    @thrifterspoint1002 5 месяцев назад

    V nicely explained server side rendering

  • @10zDelek
    @10zDelek 10 месяцев назад

    the last point was important thanks for sharing

  • @omprakashchauhan970
    @omprakashchauhan970 6 месяцев назад

    In Depth Explanation Bro ❤
    Keep it Up 😊

  • @asadanik5987
    @asadanik5987 10 месяцев назад

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

  • @AnilKumar-vp1pm
    @AnilKumar-vp1pm 5 месяцев назад

    Amazing work and explanation!!

  • @sachityadav4141
    @sachityadav4141 5 месяцев назад

    StraightForward, Nicely Explained!

  • @abukhalidrifat3994
    @abukhalidrifat3994 8 месяцев назад

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

  • @gujaratinimoj3845
    @gujaratinimoj3845 10 месяцев назад

    Good topic sir.. very helpful this..

  • @MathsWithSatyamPandey
    @MathsWithSatyamPandey 10 месяцев назад

    Amazing series sir❤ please continue 🙏🙏

  • @snehasish-bhuin
    @snehasish-bhuin 10 месяцев назад

    Amazing explained, next topic server Action :)

  • @AshishVermaO2O3O3
    @AshishVermaO2O3O3 Месяц назад

    gajab maja aa gyaa 🤩

  • @AryanSharma-dc4bj
    @AryanSharma-dc4bj 8 месяцев назад

    beautiful explanation piyush

  • @samareshdas767
    @samareshdas767 7 месяцев назад

    Such an in depth explanation. Thanks.😊

  • @irshitmukherjee7943
    @irshitmukherjee7943 9 месяцев назад

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

  • @mayanktamrkar308
    @mayanktamrkar308 10 месяцев назад

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

  • @AkshatGoyal-b5o
    @AkshatGoyal-b5o 7 дней назад

    what an amazing explaination...!!!

  • @entrepreneurcoder2659
    @entrepreneurcoder2659 10 месяцев назад

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

  • @awesomeshivamshorts
    @awesomeshivamshorts 6 месяцев назад

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

  • @dewanmohammademon
    @dewanmohammademon 8 месяцев назад

    It was truly amazing !

  • @joshikroshan5584
    @joshikroshan5584 6 месяцев назад

    One of the best explanations ever👏👏👏

  • @iamayushdas
    @iamayushdas 9 месяцев назад

    Amazing Explanation brother ❤

  • @sircillavenkatesh1458
    @sircillavenkatesh1458 10 месяцев назад

    hi piyush bro, please make a video on how to resolve CSP(Content security Policy) in nextjs. Iam getting that error while integrating custom stripe payment in my application

  • @mrityunjaysinha
    @mrityunjaysinha 10 месяцев назад

    Your contents are amazing Piyush!!

  • @dfshoikot5904
    @dfshoikot5904 8 месяцев назад

    Superb Explanation

  • @afrazali4141
    @afrazali4141 10 месяцев назад

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

  • @heartlessgammer7535
    @heartlessgammer7535 5 месяцев назад

    Kafi sahi tha ❤❤❤❤❤

  • @rakibulhasan992
    @rakibulhasan992 8 месяцев назад

    Thank you so much for your valuable video

  • @subhadeepbanerjee7361
    @subhadeepbanerjee7361 10 месяцев назад

    Informative video thanks piyush vaiya❤

  • @100xcoding
    @100xcoding 10 месяцев назад

    cristal clear information thanks great content

  • @sriman45
    @sriman45 7 месяцев назад

    Love you bro❤❤❤ Thanks for this video.

  • @AbdulHanan-dx3cr
    @AbdulHanan-dx3cr 8 месяцев назад

    Great Stuff, keep making videos. Love your videos

  • @nirajbhanushali7693
    @nirajbhanushali7693 10 месяцев назад

    Awesome teaching

  • @saiots8651
    @saiots8651 6 месяцев назад

    extraordinary explanation Greate brother.

  • @parthghatge2423
    @parthghatge2423 10 месяцев назад

    Respect Man, You are too good !!!

  • @shahbazkhalid6950
    @shahbazkhalid6950 10 месяцев назад

    Awesome explanation.

  • @Yasinafridi
    @Yasinafridi 9 месяцев назад

    Please make a playlist on CI/CD pipeline

  • @amitdubey2209
    @amitdubey2209 10 месяцев назад

    best till now!!

  • @rahulhooda1745
    @rahulhooda1745 9 месяцев назад

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

  • @moyezrabbani637
    @moyezrabbani637 10 месяцев назад

    Amazing Explanation Piyush Sir.

  • @darklord9500
    @darklord9500 10 месяцев назад

    Can you explain about webpack, bable etc.

  • @pratikbade9634
    @pratikbade9634 7 месяцев назад

    Thanks for this one ❤

  • @hustler2693
    @hustler2693 5 месяцев назад

    Excellent piyush.. ❤

  • @SolutionHub-321
    @SolutionHub-321 10 месяцев назад

    Amazing tutorial. Thanks dude.

  • @sanketgawande3667
    @sanketgawande3667 10 месяцев назад

    Nicely explained, thanks 🎉

  • @devisinghlodhi9757
    @devisinghlodhi9757 9 месяцев назад

    Awesome explanation ever, ❤❤❤

  • @digitalizhar
    @digitalizhar 9 месяцев назад +1

    Great video sir

  • @webcodeexplainedYT
    @webcodeexplainedYT 4 месяца назад

    Why we need to download entire bundle at once in CSR can't be lazily loaded ?

  • @FaizSultan430
    @FaizSultan430 9 месяцев назад

    Great explanation Piyush thanks ❤ quality content

  • @mmmm-pd1qx
    @mmmm-pd1qx 9 месяцев назад

    Great Explanation.

  • @talibhusain3335
    @talibhusain3335 3 месяца назад

    Really really Amazing video🎉

  • @ramendrasoni3368
    @ramendrasoni3368 9 месяцев назад

    worker.forEach is not a function ये कम नहीं करता एक पेज पर और दुसरे पेज पर यही कम करता है... कैसे, क्या समस्या हो सकती है |