ReactJS Course [6] - Component Lifecycle | UseEffect Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

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

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

    Best video I have watched on the useEffect hook.. i knew about triggering it in mounting and updating, but had no idea you could trigger it on unmount! Thank you!

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

    Pedro, I have never fully understood the useEffect and your explanation of WHY things happen helped
    Me a ton. I’m about to watch a ton of your videos. Thank you!!!

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

    It is the best video which taught me about useEffect.

  • @RedHand980
    @RedHand980 4 หลายเดือนก่อน +1

    Hi, Pedro, I just want to thank you for this simple and very useful tutorial. Here is little update - we can change text inside the button, depending on hiding or showing text field:
    const [btnText, setBtnText] = useState('Show Text');
    {btnText}

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

    Thanks! Pedro.

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

    Best ever explanation available on TH-cam. Thank you Pedro.

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

    Cool...
    you are putting lot more time and effort as you can do as possible for every video. good job pedro

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

    This is the best video of useEffect I've watched. Nice one!👏 I'd love something like this for useReducer, it still sounds like Greek to me.
    Besides, you wanted to link a video about another TH-camr. Can't find it in the description.

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

    Looking forward to seeing more examples of useEffect on the next vid!

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

    Finally!!!... The long awaited video arrived...

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

    Thank you so much Pedro for everything. There is no doubt that you are the best trainer. ❤❤

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

    Thanks man!

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

    fully got a good grasp of useEffect better with this video

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

    Best react JS Tutorial!

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

    Pedrooo! Muito obrigado por esse curso maravilhoso, super objetivo, conciso, direto ao ponto e entrega o que promete! Manoooo, seu inglês é fodaaaaaa rs! Podia também contar mais como que você aprendeu e chegou nesse nível! Obrigado novamente!

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

    Thank you! I finnaly got a gem across React tutorials ❤

  • @Nathan-v1f
    @Nathan-v1f 9 หลายเดือนก่อน

    By the way your the first to explain how this works, helps a lot, keep it up man!

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

    I finally understand this useEffect thanks to to this well-explained and well-prepared course.
    Doing Angular for 9 years(including AngularJS) and also some side projects using React in the past using class based component, i found this useEffect very confusing.
    The name "useEffect" doesnt make sense when you read it. Unlike in class based where you have componentDidUpdate, componentDidMount, etc, (ngOnChanges and ngOninit for Angular) where you already know what it does at first glance.
    It seems like the react team cramped all these functionalities into a single hook and cannot think of a better name then settled to just "useEffect" haha.
    I dont even get why the react team is moving away from classes and embracing the function approach, but going through this course, I am finding this new way of developing React apps interesting as it make things simple.
    Right now I am getting hooked to learn about this "hooks" concept

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

    out of all react course, i prefer urs, im watching all vedios second timee, and lookin forward for new ones, thank you so much !!!

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

    helping you to break TH-cam algorithm

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

      You were successful i guess?

  • @Salah-YT
    @Salah-YT 2 ปีที่แล้ว +1

    nice bro thank u so much and keep it up bro well done

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

    Underrated react course 👀

  • @ИннаБогданова-к4щ
    @ИннаБогданова-к4щ 2 ปีที่แล้ว +1

    Hello, Pedro! Thanx a lot for your great job!!

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

    Thank you for your tutorial Pedro! YOu helped me a lot with useEffect to understand it properly, especially, you helped me understand and solve memory leak in my project

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

    Got recommended this channel from a discord server. First time very glad for using discord 👀🔥

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

    I like your teaching style.

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

    Great tutorial 👏

  • @Nathan-v1f
    @Nathan-v1f 9 หลายเดือนก่อน

    Really love your content Pedro. Thanks a lot! your the react youtube Master.

  • @AnilKumar-xv9os
    @AnilKumar-xv9os 2 ปีที่แล้ว +1

    Nice video on useEffect. I will wait for next video just to get more clearity on "UNMOUNT".

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

    i can't see my componenet mounted in my console.log . even tho im clicking on the button ??? can anyone help me out

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

    The thing is I click the like button before I start watching the vidoe.. LOL

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

    hell yes! great job!

  • @Kal-El-gm5pc
    @Kal-El-gm5pc ปีที่แล้ว +1

    Yo. Webdev simplified can't explain this simple fr 🙏.

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

    Great video! I have 2 questions:
    1. If you wanted something to run once on mount and something else to run every update, how would you do that?
    2. If you keep using strict and you call an API when mounting like you mentioned, does that mean the API would be called twice? this could make the webpage much slower yes?
    Appreciate what you do!

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

    amazing class man💖💖💖💖

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

    This video really helps me alot !! Thanks a bunch

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

    I just watched you use State video and seen you uploaded. Thanks alot I just started learning react after learning javascript and it really helped me.

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

    east or west pedro's channel is the best

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

    Parabens Pedro .. cai de paraquedas aqui no seu canal e comecei a ver seus videos sobre React, que é uma linguagem que estou estudando a alguns meses já! Estou querendo trabalhar com front--end aqui no Canada tambem. Hoje moro em Calgary, porem morava em Vancouver até mes passado. Estou curtindo muito sua didatica e seu Ingles .. parabens mano.. continue postando e dedicando no seu canal que tu vai longe. Abracos.

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

    Very easy explanation, and it's a great way to deliver the message. Keep going, Pedro's

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

    thanks teacher! i am from peru

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

    2024 BEST COURSE,Thanks being great mentor💖💖🙌🙌

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

    Thanks @pedro ❤ from India

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

      me too from india...so what are you learning now?

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

    Педро, ты лучший)

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

    Easily explained.... ♡♡♡♡

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

    Thank you I digest it so easily, though I'm a Filipino viewer, I'd rather watch your tutorials than any of our local youtubers who teach in our own language.

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

    19:23 I noticed useEffect doesn't run when first rendering it only run when component mounted! with me it runs when first rendering also! Why is this? can anyone answer me please

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

    Thank you bro

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

    Thank you so much for your tutorials! they are extremely helpful and clear

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

    So good tutorial thank you

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

    Appreciate your hard work 💪
    Thanks for video 😊👍

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

    In 1 minute you helped me understand useEffect throughout and never forget. I reckon I watched so many tutorials to properly understand its core. Wow.

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

    Hi @PedroTech, You have covered many topics in ReactJS. I would like to ask you if you can create videos on StoryBook for React.

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

    Very helpful video

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

    Amazing!

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

    Liked. 😁

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

    the question is a bit wrong under that video, but I'll ask you anyway. why wasn't prevState mentioned when using useState?

  • @38911bytefree
    @38911bytefree ปีที่แล้ว

    But then it defeat the purpose of executing code ONCE when the component appears or starts existing. Need more logic now to obtain the same result as when you have commented the strict option. Im saying ... I want to do only one console log and be good react student and let my strict mode enabled ... Patchy !!!!!!! Anyways, FANTASTIC video Pedro, you are helping on lower my hate to react one vid at a time LOL !!!! Great Teacher There !!!!! Obrigado

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

    Perfecto!!

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

    how did you even delete that input

  • @Hacking-NASSA-with-HTML
    @Hacking-NASSA-with-HTML ปีที่แล้ว

    I know it feels a little bit spammy still it's buzzes me 😁
    Could you make a tutorial on how to make a MERN blog, with images stored in Cloudinary 🤗🙏?

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

    It was very helpful. Thanks Pedro ❤

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

    king

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

    Thankkk uuuuu

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

    Hey
    Are you from iran?

  • @augischadiegils.5109
    @augischadiegils.5109 2 ปีที่แล้ว

    ❤️❤️❤️

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

    done

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

    React in plain english 😌

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

    Dont see the logic behind making a video on all hooks...

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

    this is way too had nothing works

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

    Great Tutor, Bro