ReactJS : Working with the Context API, With Class Based Components

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

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

  • @faris.abuali
    @faris.abuali 2 ปีที่แล้ว +4

    Thanks. I knew how to do that with hooks and function components, but I haven't ever gotten to learn the class's way. Very useful and clear.

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

    Thanks. I knew how to do that with hooks and function components, but havent ever gotten to learn the classes way. Very useful and clear.

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

    Thanks a lot, i just worked on legacy codebase, it really helps me to understand how to use context in class component.

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

    Thank you so much for this video. Most videos out there explain it using functional components. 👍

  • @ricardodanielanaya7028
    @ricardodanielanaya7028 3 ปีที่แล้ว

    First approach of consuming was really useful to me! Thanks!

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

    Thanks man. u are no noob!

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

    Awesome. Please make a video on hooks with context API

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

    Hi, thanks for a video, it really helped me. But I have a qustion. How to fetch data from API using context? Can I just put componentDidMount and add fetch() to FileContext.js and then set state? Is it correct way?

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

    Thank you for the very good explanation on this.

  • @_.sunnyraj._
    @_.sunnyraj._ 4 ปีที่แล้ว +1

    Underrated

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

    Thank you ❤️

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

    How to change username to other then Bob?

  • @nagendrapp2213
    @nagendrapp2213 4 ปีที่แล้ว

    very good series please make more videos

  • @vickyvignesh3523
    @vickyvignesh3523 4 ปีที่แล้ว

    wow really great !! make a video on hooks with context API

  • @VipinSharma-mr7sq
    @VipinSharma-mr7sq 4 ปีที่แล้ว

    Amazing explanation!!!

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

    thank you so much!

  • @cashcold3999
    @cashcold3999 3 ปีที่แล้ว

    Hi Sir, Thank you are your great Video here, Please is there any way i can setstate with the global variable I pass on using context api in componentDidMount , I can use destructuring in and use inside the render but i want to save it outside render and perform Crud operation

  • @gtrj55tgjr
    @gtrj55tgjr 4 ปีที่แล้ว

    HI Thank you very much for this video, its help me to lifting up state(state management) but i have very important question which i faced, only render method call when we call the login or logout function, not any other method like constructor or componentwillmount or etc, so we can say that we can't keep child component own state because we can't update child state by contextApi state (because we only have one place where we can use setState method which is render method, and if you put it in render method, then it would be recursive to infinite loop ) because every time state change render call and again and again this happen
    or we keep child state but can't update by context api state
    please answer if any one who know the answer

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

    Thank you

  • @_.sunnyraj._
    @_.sunnyraj._ 4 ปีที่แล้ว

    Epico

    • @Droid338
      @Droid338 4 ปีที่แล้ว

      Si pues

  • @luiscarriel9199
    @luiscarriel9199 4 ปีที่แล้ว

    crack!

  • @whoman7930
    @whoman7930 3 ปีที่แล้ว

    Hey, there more videos on class based components please. Functional components is really overrated.