Learn React Higher Order Component (HOC) in 10 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.พ. 2022
  • "Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use."
    INSTAGRAM : @talhankofficial
    / talhankofficial
    TWITTER : @TalhaNk2
    / talhank2

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

  • @shilpachauhan9178
    @shilpachauhan9178 7 หลายเดือนก่อน +10

    I literally wasted few hours to learn HOC. But This video make me undestand In just 10 minutes. Simple and concise 👏👏

  • @alcidesign
    @alcidesign 10 หลายเดือนก่อน +3

    Yo! I've been spending the whole morning trying to understand what HOC was about and you make it clear for me in less than 10 minutes. Thank you bro.

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

    You explained so much in just 10 mins. I really learnt a lot from this tutorial.

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

    Greatest video on TH-cam for Higher Order Components. Kudos to you bro.

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

    great thanks, you're explanation is so much clear and on point

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

    This was extremely clear and very good. I appreciate the simple and concise explanations / demonstrations you gave

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

    This is by far simplest explanation using functional components on whole utube!!

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

    Best example and very clear exaplanation, If we have this kind of trainer everyone will get job and become good developer. Thank you so mutch.

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

    Sir... When I am telling you ke you are the best I MEAN IT. I have been trying to understand HOC for 2 hours now but not a single video is with small but good example... Your video saved my life 😭.... Thank you so much for this code example I will never forget this. ♥️

  • @MoritzWright
    @MoritzWright 15 วันที่ผ่านมา

    That is actually a very good explanation! Thanks!

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

    Excellent, came from the Coursera meta course to understand this concept more clearly

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

    thanks so much master! all clear

  • @CreativeNerdVentures
    @CreativeNerdVentures 12 วันที่ผ่านมา

    you explained it very nicely brother. Keep going....
    😊 thanks!!!

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

    What if we create a single Component with state value as money and an option to increase money.
    they will have a button to increase the bid in component Person. Can you please explain why do we need to add this inside HOC here if the component can manage this using props?

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

      hi! have you found the answer? I have the same idea and wondering why we need to use HOC

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

    Super bro...good explain...... Look forward to see you with more videos...

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

    Great explanation! Thank you! :D

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

    This is amazing. Thank you.

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

    Thank you so much and please continue to reactjs

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

    Thanks for exelent video, your explication was simple and very good

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

    Very beautiful. I am a JS dev for a long but new to React and HOC was one of the concepts I was confused about. You explained it well. I can relate tp a few points explained below.
    I would add some points about the use case for the other viewers:
    1. It makes your code follow DRY( Don't Repeat Yourself) principle. ➿
    2. In React it's always better to avoid as less stateful components as possible. Putting the state in the HOC and making the useable components stateless, made us follow the principle, and made the state centralized for similar code bases. ✅
    3. It's a very much asked question in the interview, not a use case though. 🤣🤣🤣🤣

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

    very well made, my thanks for who made this video, it's content is concise and simple, perfect for begginers!

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

    Nice and clear!
    Thank you.
    Please make a video for HOC with TypeScript, it is very confusing.

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

    holy sheet best explanation ever, THANK YOU

  • @JakeOfIL
    @JakeOfIL 8 หลายเดือนก่อน +1

    Thank you so much for this! Really helped me understand the basics of HOC.
    What if for Jimmy we multiply by 2 and for John we add 10, is that possible in HOC as well? how will it be written?
    If you could make a video of more complex logic of HOC that would really be amazing!
    Thank you!

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

    thanks for real simple explanation.

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

    This explanation deserves a standing ovation!

  • @arpitsharma-us4ou
    @arpitsharma-us4ou 6 หลายเดือนก่อน

    it help me for my interview thanks bro

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

    Amazing tutorial!

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

    You are awesome ✨

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

    Thank you

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

    Great video, What are the other situations to use HOC ?

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

    Well explained

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

    Good explanation, thank you!
    I have a doubt about the "NewComponent", why is it not receiving any prop?
    And why are you returning "OriginalComponent" and "NewComponent"?

  • @phongnguyen.5322
    @phongnguyen.5322 ปีที่แล้ว

    good explain, thanks u sir

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

    You deserve subscription and thanks alot for this video and sir please guide me line number 9 of hoc

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

    best explanation ever

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

    thanks!

  • @ManamiBhunia-xm5to
    @ManamiBhunia-xm5to ปีที่แล้ว

    nice explanation

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

    Can you make a video of your VS extensions?

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

    damn, I heard the Indian accent and said noooo xD but in the end my God this was a great explanation, the best I've found about this topic, you get a like and if I find something else like this in your channel you get a subscriber.

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

    Really nice explanation bro

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

    can you give me the font name. thank you

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

    best explanation ever thank u .... you earned my sub ... but please but can u give us the name of the vscode theme and how that cool cursor animation works it´s amazing and thank you

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

      Thanks
      GitHub dark theme with Cascadia Font and cursor blinking expand.

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

      @@ZAINKEEPSCODE thanks man it worked finnally now i look like a programmer

  • @lokishandle
    @lokishandle 2 วันที่ผ่านมา

    😆 ex felt personal
    ❤ for HOC

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

    i am waiting. i have not cleared this

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

    How to pass props from App to person1 as well?

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

      In addition to the HOC props

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

    Bro make the video with react redux.

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

    you are the fucking man bro omg

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

    Awesome content, just avoid using Fireship themed thumbnail, better to create your own identity

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

    i have money but im not rich T_T

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

    jhaat explanation

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

    UR ACCENT AND VOICE IS JUST HARD TO FOLLOW WITH