React Render Props Made Simple!

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

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

  • @TheCodeCreative
    @TheCodeCreative  4 года назад +1

    To subscribe to the channel: ruclips.net/channel/UCmOpHGj4JRWCdXhllVTZCVw

  • @yuryitikhonoff9631
    @yuryitikhonoff9631 3 года назад +2

    Oh snap. It's the best explanation I've met with the various number of videos dedicated to render props technic. Thanks a lot, man.

  • @slow4992
    @slow4992 2 года назад +2

    Extremely informative video. The "oh snap" at 7:55 was perfectly timed for my very noob realisation 😅

  • @hectorserrano9314
    @hectorserrano9314 2 года назад +6

    This was such an informative video and I loved the pace at which you were going at. I subbed and turned notifications, you're a great teacher sir!

  • @footnuke
    @footnuke 2 года назад +3

    Thanks for such a short and easy-to-follow explanation! After an hour of looking through docs, this video finally made it click for me.

  • @austinjohn8713
    @austinjohn8713 4 года назад +4

    Excellent tutorial. Many tutorials try to cover render props and fail miserably because they do not do it in a systematic manner that answers the following questions
    What is a render prop?
    Why do we need it?
    How can I implement it?
    I think everyone should come here to understand what render props concept is and how to apply it. The best I can do to you is to subscribe to your channel and like the video and I have just done so.
    Thank you for saving me after hours of frustration in trying to understand this convoluted topic
    Love from Sweden!

    • @TheCodeCreative
      @TheCodeCreative  4 года назад +1

      Thanks Augustine for the great comment. Glad the video was helpful! Happy holidays and thanks for watching!

  • @vaclavvlcek4527
    @vaclavvlcek4527 Год назад +1

    It took me quite a while to understand this concept until I discovered this video. Thank you very much for that :)

  • @ChaoticBlackout
    @ChaoticBlackout 4 года назад +3

    This is a fantastic video. Excellent explanations/examples and even a little humor. You need more subscribers!

    • @TheCodeCreative
      @TheCodeCreative  4 года назад

      Thanks for the comment Albert! More videos coming soon 👍🏻

  • @ruchad4035
    @ruchad4035 3 года назад +4

    Thank you! This one of the best explanation I found!

  • @xdxdxd4023
    @xdxdxd4023 8 месяцев назад +1

    so glad to see some mature content & explanation!

  • @stefc4663
    @stefc4663 4 года назад +1

    Best renderprops explanation! It finally clicked and at the very beginning of your explanation too!!

  • @subhashgn1775
    @subhashgn1775 6 месяцев назад +1

    Finally I got it.❤
    Thanks for this clear explaination.

  • @iliketocode6986
    @iliketocode6986 4 года назад +2

    thank you!! i like the diagram stuff as well appreciate the effort. One of the few channels i hit the bell button for.

  • @zamgill
    @zamgill Год назад +1

    Thank you! Your explanation made this concept so much easier to comprehend :)

  • @rickhoro
    @rickhoro 2 года назад +1

    Thanks for making that so easy to understand. Good job filtering out any unnecessary extras from your example.

  • @saucy05
    @saucy05 2 года назад +1

    Ahhh makes sense now. Clear and concise. Subscribed.

  • @dopetag
    @dopetag 2 года назад +1

    Wow! Such a simple explanation of the complex thing! You are my hero 🙌

  • @sankalpsingh255
    @sankalpsingh255 2 года назад +1

    Guitars made this so easy to understand. Thanks

  • @ivancastillo3893
    @ivancastillo3893 3 года назад +2

    Great video / explanation! There aren't many videos out there on render props

  • @yhbarve
    @yhbarve 4 месяца назад +1

    Wow! You made this so easy for me. Thank you

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

      Glad I could help! Let me know what other topics you'd like to see.

  • @code-with-damian
    @code-with-damian Год назад +1

    Dude amaysing straight to the point new follower for sure

  • @Webdevelopmentya
    @Webdevelopmentya 2 года назад +1

    Lmao I literally thought I was thinking out loud when I heard the Audio (oh snap) when you passed the state into the render function. 😂 The timing was spot on lol thanks this helped me a lot

  • @yashvashisth4591
    @yashvashisth4591 3 года назад +1

    Best Explanation on RUclips..!!! THANX dude..

  • @TheCodeCreative
    @TheCodeCreative  4 года назад

    🗣JOIN the Code Creative Facebook group! :
    facebook.com/groups/1612600368887577

  • @manoharune6381
    @manoharune6381 3 года назад +2

    This was Great!
    Perfect Explanation

  • @aytacg26
    @aytacg26 3 года назад +2

    Great explanation with a simple example. Thank you very much

    • @TheCodeCreative
      @TheCodeCreative  3 года назад

      You're welcome. Let me know what other topics you'd like to see 👍🏻

  • @easyfinanceexplained
    @easyfinanceexplained 3 года назад +2

    Great piece of Information. Thank you for making this concept such simple.

  • @fullstackprojects5615
    @fullstackprojects5615 3 года назад +1

    Excellent explanation. Thank you. Subscribed!

  • @TheCodeCreative
    @TheCodeCreative  3 года назад

    📖 Download my FREE "Google Search Secrets for Developers" Cheat Sheet:
    store.thecodecreative.com/google-secrets-cheat-sheet

  • @omersoncruz1081
    @omersoncruz1081 2 года назад +1

    Why am i only seeing this now. This guy deserves more views

  • @marcovanali1449
    @marcovanali1449 3 года назад +11

    Very well explained thanks! Could you explain the differences between this approach with render props and instead using re-usable hooks?

    • @abhiramsatpute
      @abhiramsatpute 2 года назад +1

      I also wanted to know the same, let me know if you found s a good resource to answer this!

    • @abhiramsatpute
      @abhiramsatpute 2 года назад

      Also, can this Wrapper be called a Higher Order Component?

    • @hectorserrano9314
      @hectorserrano9314 2 года назад +1

      @@abhiramsatpute From what I've understood. This is the old way of doing and that's what hooks are solving. Hence you shouldn't be looking to go for this approach if you're using newer versions of react. In fact, if you read the documentation, they have render-props as the "motivation" for moving away from it.

    • @abhiramsatpute
      @abhiramsatpute 2 года назад +1

      @@hectorserrano9314 i get it now, thanks!

    • @mprasanth18
      @mprasanth18 2 года назад

      @@hectorserrano9314 thanks a lot 👍

  • @praveen_javali
    @praveen_javali 3 года назад +1

    Very Well Explained!! Thank you.

  • @yasser.dev7
    @yasser.dev7 3 года назад +2

    Amazing explanation !!, thanks a lots.

  • @kiranravindrant
    @kiranravindrant 3 года назад +1

    Best Explanation ever!!

  • @moufid9256
    @moufid9256 3 года назад +1

    Thank you, the simplest explanation

  • @SaiKrishna-ud5xt
    @SaiKrishna-ud5xt 2 года назад +1

    Very good and clear explanation

  • @zakaria5775
    @zakaria5775 3 года назад +1

    Thank u So Much, I now have a clear idea about Render Props ! 🙏

  • @mutebironald1922
    @mutebironald1922 2 года назад +1

    Thanks for the great explanation.

  • @user-he8qc4mr4i
    @user-he8qc4mr4i 3 года назад +1

    Nice! Thx for sharing! I am using it with function base components :-)

  • @DerrickAfrifa
    @DerrickAfrifa 2 года назад +1

    "oh snap" that was brilliant haha

  • @ariffaysal9458
    @ariffaysal9458 3 года назад

    very nice practical example, thank you very much !

  • @subhasishnathdev
    @subhasishnathdev 11 месяцев назад +1

    Thanks for the explanation.

  • @kshitijvengurlekar1192
    @kshitijvengurlekar1192 2 года назад +1

    This is a gem

  • @azzam7239
    @azzam7239 3 года назад +1

    That oh snap lmao,
    great explanation thank you.

  • @GoodToCU88
    @GoodToCU88 2 года назад +1

    Very well explained. Thank you! I do have a question. What is the difference between the renderProps approach and perhaps just render the button component 2 times?

    • @ameennoushad7973
      @ameennoushad7973 2 года назад

      No big difference. The main help is it will help reduce redundancy in writing code again and again. So a major point while coding is to follow DRY principle, Do not Repeat Yourself. So this helps achieve that. And regarding if it helps in any performance boost, that I’m not sure of .

  • @Saq-t5k
    @Saq-t5k 7 месяцев назад +1

    thanks bro your video very good and understand

  • @sapramit
    @sapramit 4 года назад +2

    Great. Would be good if you could compare HOC and render props. And when to use what

  • @brinthkr1533
    @brinthkr1533 4 года назад +1

    Awesome explanation

  • @AYUSHSHARMAblogs
    @AYUSHSHARMAblogs 3 года назад +1

    Thanks nice explanation

  • @deadwalkru
    @deadwalkru 4 года назад +7

    So it's only useful in class components? Reusable hooks are much easier to understand.

  • @echom8138
    @echom8138 3 года назад +1

    Thank you

  • @sachink7955
    @sachink7955 3 года назад +1

    React Render Props Made Simple! Thankyou

  • @Quicknuggets
    @Quicknuggets 3 года назад +1

    Can the wrapper componet be a functional componet? Or does it have to be class base

    • @itakpeemmanuel5863
      @itakpeemmanuel5863 3 года назад

      It can be functional component, so no 'this' ans state is managed with the useState hook

  • @durbonca
    @durbonca Год назад

    At the end of the video, instead of creating 2 "Wrapper" components, could counter1 and counter2 be passed to the render method of one Wrapper?

  • @pankaj.yadav1
    @pankaj.yadav1 Год назад +1

    it was a good explanation

  • @showhow6827
    @showhow6827 Год назад +1

    Great tutorial, Can you please share your VSCode theme name and fonts? Thank you.

    • @TheCodeCreative
      @TheCodeCreative  Год назад

      Thanks! Yes, it's Shades of Purple for the theme and Fira Code for the font.

  • @137dylan
    @137dylan 3 года назад

    Is this similar to "higher order components"? We are using a component, to accept a component, and return a component

  • @laxmikanthgurram1074
    @laxmikanthgurram1074 Год назад +1

    wow..a bit complex topic explained in so simple way!

  • @mahgolmoghadas6848
    @mahgolmoghadas6848 Год назад

    Is there any specific reason you defined the Wrapper as a class based component?

  • @magnuslundstrm3719
    @magnuslundstrm3719 3 года назад +1

    Great stuff :)

  • @kshitijvengurlekar1192
    @kshitijvengurlekar1192 2 года назад +1

    Why did you use a class based component for wrapper?

    • @TheCodeCreative
      @TheCodeCreative  2 года назад

      In order to use state, in this particular example

  • @arunkaiser
    @arunkaiser 3 года назад +1

    Great video

  • @seta16
    @seta16 Год назад

    #Best explanation out there of the render props in react. I would like to check it in typescript or with function base components but this explanation I havent found it nor in colt steele neither by schwarzmuller

  • @vishaljain8868
    @vishaljain8868 3 года назад

    Do you think with hooks we can simplify this pattern?

  • @levialviter2302
    @levialviter2302 Год назад +1

    Pretty useful

  • @mohamedyoussef8835
    @mohamedyoussef8835 3 года назад +1

    Awesome explanation +++++++++++++++

  • @sumanpokharel1718
    @sumanpokharel1718 4 года назад +1

    Thank you!!

  • @mertgenc9890
    @mertgenc9890 3 года назад +1

    what is your vs cdoe theme?

  • @alihammad8667
    @alihammad8667 Год назад

    Amazing lesson! But I'm a little confused about the difference between render props and higher order components

  • @devstefancho
    @devstefancho 4 года назад +1

    I’m very interested in render props then What is difference with children props?

  • @noibiolamilekan3501
    @noibiolamilekan3501 2 года назад +1

    God bless you!

  • @joaovictormsantos
    @joaovictormsantos 2 года назад +1

    Hey, what's the name of this theme?

  • @iliketocode6986
    @iliketocode6986 4 года назад +2

    having trouble answering difference between render props and hoc

    • @TheCodeCreative
      @TheCodeCreative  4 года назад +1

      I'm going to do a video on this soon.

    • @iliketocode6986
      @iliketocode6986 4 года назад +1

      @@TheCodeCreative O really awesome. I was asked this in a mid level react interview and had nfi. =/ now did bit of reading not much but HOC arent intended to hold state where as the parent of the render prop does or some crap along those lines xD.

  • @mahboobt9928
    @mahboobt9928 4 года назад +1

    Thanks aloooot

  • @abuhuraira5569
    @abuhuraira5569 Год назад

    is "render" a keyword in app.js?

  • @musket4719
    @musket4719 Год назад +1

    nice

  • @iliketocode6986
    @iliketocode6986 4 года назад +1

    be fun if we could code together step by step though

  • @hiteshsuthar1097
    @hiteshsuthar1097 3 года назад

    This is same as Higher order components(HOC) concept.

  • @Cognitoman
    @Cognitoman 3 года назад +1

    lol "Ohh snap!"

  • @suryatejaparvata
    @suryatejaparvata 2 года назад

  • @Quicknuggets
    @Quicknuggets 2 года назад +1

    oohs snap... lol what was that about.

  • @JolandaCimina
    @JolandaCimina 11 месяцев назад

    dry means don't repeat yourself, but you repeated yourself with the result of complicating the code

  • @hamzahahmad1670
    @hamzahahmad1670 6 месяцев назад +1

    Great explanation, thank you!

  • @ouahibamerbear5003
    @ouahibamerbear5003 9 дней назад +1

    Thank you so much 😊😊😊😊

  • @vamshireddy8187
    @vamshireddy8187 4 месяца назад +1

    nice

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

      Thank you for watching! Let me know what other tutorials you'd like to see.