React Fiber Reconciliation: How it Works (Part 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • DISCLAIMER: React is perfectly usable without understanding this stuff, and isn't hard. This video isn't essential to using React, but is just for people like me, curious about internals.
    SHARE THE VIDEO if you found it useful!
    In this video, we'll be taking a look at how React Fiber Reconciliation works. We'll explore what reconciliation means, why the stack reconciler wasn't enough, and how the fiber reconciler provides a superior reconciliation process.
    React Fiber Reconciliation is a powerful mechanism that can be used to create great user interfaces with your React applications. In this video, we'll explore how it works and see how it can be used to better understand our React applications. If you're interested in learning more about React Fiber Reconciliation, then this video is for you!
    Links
    - The React India video: • React India: The Best ...
    - @user-ve4ig9tt5u 's comment: • React India: The Best ...
    Chapters
    00:00 Intro
    00:48 What is "Reconciliation" in React?
    02:07 The Stack Reconciler
    04:22 The Fiber Reconciler
    13:02 Conclusion
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @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!

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

    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?

  • @gauravnandedkar5701
    @gauravnandedkar5701 7 หลายเดือนก่อน +1

    Support from India...very good teaching.

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

    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  หลายเดือนก่อน

      Awesome, thank you!

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

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

  • @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

  • @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.

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

    Super helpful and professional video! Good job bro!

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

    Best explanation I found.

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

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

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

      I do it for you

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

    Thank you for the video!

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

      My pleasure!

  • @shafaatakhunzada8081
    @shafaatakhunzada8081 10 หลายเดือนก่อน +1

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

  • @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 🙂

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

    Th explanation was absolutely wonderful!

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

      Thanks!!

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

    Cool stuff.

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

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

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

    Thanks for the vid 🙏

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

      You bet

  • @denishclarke4470
    @denishclarke4470 10 วันที่ผ่านมา

    Fiber reconcile the things what diffing algorithm tells, right

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

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

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

    Amazing!

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

      Thanks!

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

    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?"

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

    ❤❤❤

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

    😍😍

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

    how does virtual DOM fit in to this?

  • @ritviktyagi9221
    @ritviktyagi9221 6 หลายเดือนก่อน +1

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

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

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

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

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

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

    🐐🐐🐐🐐🐐🐐

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

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

  • @stephen1569
    @stephen1569 26 วันที่ผ่านมา

    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.