React Fiber Reconciliation: How it Works (Part 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ม.ค. 2025

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

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

    This was so helpful! No fuss, just the information required to picturize and hence understand React's internal working.
    This, for sure deserves to have far more reach! Lot better than majority of existing long explanations of Fiber, reconciliation on the Internet!
    Thanks for sharing this!

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

      Glad it was helpful! Feel free to share it!

  • @adventurer2395
    @adventurer2395 11 วันที่ผ่านมา

    3:45 Correction about the stack reconciler: It's not that you have higher priority work sitting under low priority work. Quite the contrary, higher priority tasks would typically come after and be waiting at the top of the stack. The problem is the lower priority task that got popped previously from the stack taking up the main thread while the most recent higher priority update was waiting for the thread to unblock. Example: React pushes an update to display hundreds of users you got from a fetch call. While it's working on reconciling that, the user tries to scroll, the scroll event is pushed to the stack but can't be popped because the main thread is blocked reconciling the hundreds of user elements.
    Great job overall on the video! Very easy to follow.

  • @tsuki_
    @tsuki_ ปีที่แล้ว +8

    It was your React video (where you basically implemented the react hooks in 30 minutes) that blew my mind. Before that, I used to take things as "magic". Your video made things normal and just javascript. And again it is your video that is helping me refresh my knowledge of how React reacts underneath. Thank you for being such an awesome being. Tejas BeingAwesome™ 🙂

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

      Hey,
      Can you share the link of that video?

  • @ShivamSharma-dq4pu
    @ShivamSharma-dq4pu ปีที่แล้ว +2

    Hey! Tejas, a big warm hug, and thanks for making this video.
    I am 26 and I started coding/programming (I don't know the difference) in July 2022 last year not because I loved it or anything but because I was not succeeding in getting a decent job as a Mechanical Engineer as there are none in India, coding was providing me an outlet to get a job with fixed working hours and decent salary so I gave it a shot, grinded hard and guess what? I landed a job as a front-end engineer. I am not a smart person and I know when sh*t will hit the fan my company will dispose me so I have to constantly learn, educators like you, James q quick, The coding Train, and Web dev simplified to name a few are really helpful. Again thank you

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

      Appreciate you friend

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

    Support from India...very good teaching.

  • @madhuiitb-cse
    @madhuiitb-cse 5 หลายเดือนก่อน

    Hey Tejas,
    You got the new subscriber, you are on the point. I am new to this channel.
    It really helps to understand how react internal works. Amazing, keep continue stuff like this.

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

    I manifest an entire javascript and react series coming from you ☺

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

    Super helpful and professional video! Good job bro!

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

    This was very helpful!. First time I am watching a video on your channel. I love the diagram representations, really drove the point home, thank you very much

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

      Awesome, thank you!

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

    this is some dope shit, like no one teaches about react in this depth :)

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

      I do it for you

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

    I recently just heard of React Fiber from a course, and I didn't quite understand it. I can't wait for part 2 of the video, thanks Tejas for the explanation. Though what about the cleanup phase, one thing I remember from the course is that there are 3 life cycle phases, render phase, commit phase and cleanup phase.

  • @7Budyn7
    @7Budyn7 ปีที่แล้ว

    Best explanation I found.

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

    What is this app that you're using to explain?

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

    how react fiber differentiate between high priority and low priority tasks?

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

    Th explanation was absolutely wonderful!

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

      Thanks!!

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

    Thank you for the video!

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

      My pleasure!

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

    Just curious if we have a big list of components which form an application.. counter is component and the update happen.
    The question is will the host node for that phase is the root of counter component or the application root?

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

    hi, I have a question: "The JSX React.createElement() function calls and returns an object. When this Object transforms to Element tree, this object is called element tree, right?"

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

    Is the tree generated by fiber the Virtual DOM? If not where does Virtual DOM fits into this?

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

      I have the same exact question. did you find out?

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

      yes , the react dom tree is generated by fiber tree.

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

    which memory are we talking about when we use the term in memory is it RAM or browsers localstorage ?

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

    Thanks for the vid 🙏

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

      You bet

  • @AFC-ro6bk
    @AFC-ro6bk ปีที่แล้ว

    Hi Tejas, great video, thanks for the deep dive and the explanations 🙂 I have a question about diffing virtual DOM trees. I would like to know if the diffing part is always done with comparing entire virtual DOM trees (old one and new one), or just parts that are updated are getting diffed? I understand that React will not go through the render phase of the entire app component tree if just some single nested component state is updated. But does that mean that the diffing part would be done just for this single component virtual DOM or it would be done for the entire app virtual DOM? Thanks 🙂

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

    Cool stuff.

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

    Fiber reconcile the things what diffing algorithm tells, right

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

    how does virtual DOM fit in to this?

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

    Amazing!

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

      Thanks!

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

    Excellent presentation my friend. I was hoping that there might be some general detail about the logic of how Fiber Root Node switches the pointer. Also, do the elements change position in the array [ currentX, setCurrentX ] ? Maybe this might be a topic for another video? Many thanks.

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

    Thanks for effort but i cant catch up stream and lost focus while watching

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

    ❤❤❤

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

    🐐🐐🐐🐐🐐🐐

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

    😍😍

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

    I am straggling to understand please make this more easy...