06 Virtual DOM, Fibre and reconciliation

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 1 тис.

  • @gauravbanerjee2898
    @gauravbanerjee2898 11 місяців тому +328

    Thank you so much Hitesh sir
    Here is the takeaway from the video
    /*
    1.The createRoot create's its own DOM and then compare it with the web browser's DOM and only update those components which are actually updated.
    2.But the browser removes the whole DOM and then recrates the whole DOM with the updated values this is called reload.
    3. However virtual DOM tracks whole DOM like a tree like structure and updates only those values which were only changed.
    4. But some values depends on network call so if we update a value it might get update immediately via a network call.
    5. So we will have to update it again. To avoid this overhead we can drop the updation calls for the immediate value update.
    6. The current algo used by the React is called the React Fibre algo.
    7. The algo react uses to differentiate the web browser's tree and React's tree formed through create root is called reconciliation.
    8. Reconciliation is the algo behind what popularly known as the Virtual-DOM.
    9.In UI it is not necessary for every update to be applied immediately. */

  • @nikksanirudh
    @nikksanirudh 2 місяці тому +17

    hydration : Jab pehli baar page load hota hai, buttons aur images dikhte hain (HTML aa gaya), lekin kuch click nahi hota kyunki JavaScript ab tak load nahi hui hoti. Phir jab JavaScript load ho ke React ko HTML ke saath connect karti hai aur sab interactive ho jata hai, us process ko hydration bolte hain. aur ye fibre algorithm k through kaafi aachi hoti hai

  • @arunkumar7617
    @arunkumar7617 Рік тому +24

    Impressive. No one touch these topics in their videos. This series is a true gem.

  • @afaqahmad-ef4ky
    @afaqahmad-ef4ky Рік тому +25

    Congratulations to all Indians for their landing...
    From Pakistan ❤️😊

  • @Moniverma2302
    @Moniverma2302 10 місяців тому +9

    Aapke teaching pattern se esa lag rha hain hum sab bhi real world problems with solution face kr rhe hai, fresher wali feeling nahi aegi interview Dene jaege to🙏😆 thanks a lot sir

  • @rohitsahu7172
    @rohitsahu7172 9 місяців тому +3

    Your teaching style goes beyond the conventional. You don't just educate; you inspire curiosity and create a framework for effective teaching. Grateful for the unique perspective you bring to education!

  • @jk-sm6qr
    @jk-sm6qr 9 місяців тому +5

    I watch this video 3 times and now understood the document easily. Thank you sir ji

  • @vikassahani2874
    @vikassahani2874 Рік тому +65

    Time Stamp of the video
    0:30 ⇒ intro
    0:45-1:17⇒ kahani of Dr.
    1:36 ⇒ Virtual DOM
    1. kya abhi bhi Virtual DOM padna chhiye? ⇒ yes
    2. kya abhi bhi use hota Virtual DOM React me? ⇒ no
    3. what is reconciliation?
    4. fibre?, virtual dom
    3:00 ⇒ Article for understanding Virtual Dom
    3:15⇒ `createRoot` method of `react-dom`
    5:36 ⇒ documentation
    “react fibre” search on google
    - Virtual dom ko update karne ke liye fiber algorithm ka use hota h
    - 10:10 ⇒ Reconciliation is Virtual DOM
    - 17:30 ⇒ Fiber
    - 19:00→ Structure of a fiber will do later
    19:45 ⇒ summarizing the video

  • @deepansh-gangwar
    @deepansh-gangwar Рік тому +9

    Sir, aap programming bahut achi pdhate h you are my favorite instructor,

  • @navinkumarsahu1159
    @navinkumarsahu1159 Рік тому +140

    This series has become just like drugs it's quite addictive 🙏

  • @wasifurrahmanefaz4216
    @wasifurrahmanefaz4216 11 місяців тому +4

    Your teaching style goes beyond the conventional. You don't just educate; you inspire curiosity and create a framework for effective teaching. Every teacher should adopt your teaching approach. Grateful for the unique perspective you bring to education!
    Love form Bangladesh💝

  • @techieimam4491
    @techieimam4491 Рік тому +2

    Maine already 12 hours ke lecture dekh rakhe hai ....aur thik thak knowledge ho gae project bana ne k lye....par jab se bhaiya apka video dekha hu....React me feel aa rha hai...aur bahut saare baatein aap bata te ho Jo Mai ni janta tha.. Thanks bhaiya.... aur aapki way of talking Masha Allah lajawab hai....😀

  • @ojal.dev.
    @ojal.dev. Рік тому +37

    This React Course is going to be great just like the JavaScript course.

  • @toheedulhaq146
    @toheedulhaq146 4 місяці тому +2

    Sir aapke padhane ka tareqa aisa hai k aapka channel aik addiction ban chuka hai. Hats off to you Sir.

  • @Sneakingmentor
    @Sneakingmentor Рік тому +4

    maja aagaya. Atleast after watching all the videos till here now i know what is react. Why do we use components. The use of state hook. How react actually works.

  • @whatappstatus6937
    @whatappstatus6937 Місяць тому +2

    Thank you so much Hitesh sir
    Here is the takeaway from the video
    /*
    1.The createRoot create's its own DOM and then compare it with the web browser's DOM and only update those components which are actually updated.
    2.But the browser removes the whole DOM and then recrates the whole DOM with the updated values this is called reload.
    3. However virtual DOM tracks whole DOM like a tree like structure and updates only those values which were only changed.
    4. But some values depends on network call so if we update a value it might get update immediately via a network call.
    5. So we will have to update it again. To avoid this overhead we can drop the updation calls for the immediate value update.
    6. The current algo used by the React is called the React Fibre algo.
    7. The algo react uses to differentiate the web browser's tree and React's tree formed through create root is called reconciliation.
    8. Reconciliation is the algo behind what popularly known as the Virtual-DOM.
    9.In UI it is not necessary for every update to be applied immediately. */

  • @adityadolui8633
    @adityadolui8633 Рік тому +3

    It's your teaching skill that makes this video so interesting. Really yee to lack rupay ka course hain. Hats off ❤️

  • @09avishkargaikwad71
    @09avishkargaikwad71 8 місяців тому +1

    Yes sir, You have completed your goal to create a curiosity for exploring new tech things and go into deeper level.

  • @chaiaursafar
    @chaiaursafar Рік тому +4

    bhaiya you are best and the way you taught of us just amazing sbki jeewan me aap jese tutor honge to jeewan jeena aasan ho jayega

  • @mukuljain9024
    @mukuljain9024 8 місяців тому +1

    Nimbu Pani hamara bhi tayar he
    Bahut achhe se concepts pure ho rahe he confidence bhi in a good way badh raha
    Thankyou sir

  • @abhisheknaik4885
    @abhisheknaik4885 Рік тому +6

    Initially I felt the Lec would be boring but later through your stories it became more interesting , Expecting the full Course❤❤❤❤

  • @SadamShaikh-g8r
    @SadamShaikh-g8r Місяць тому

    This Guy is the best Instructor I have even seen in my life, Love and Appreciation From Pakistan 💖

  • @harsh-alashi
    @harsh-alashi Рік тому +11

    If all episodes would've been dropped at once, I would've binge watched this series

  • @VishalSharma-rn7mt
    @VishalSharma-rn7mt Рік тому

    Sir aap jis level ki knowledge share kar rahe hai, us level ki knowledge aur kisine kabhi nahi share kiya, Thank you so much Sirji 😊

  • @SuryaKarigar
    @SuryaKarigar Рік тому +3

    React compares its pre-state and post-state virtual DOM while updating the original DOM UI. It basically differentiates between the components and finds the most efficient way to update by minimizing the number of manipulations required. This process is called reconciliation.

  • @bacchokipasand
    @bacchokipasand 10 місяців тому +2

    Sir sach mai app itne ache sai padate ho bohot acha lgta .

  • @shikharpandya4927
    @shikharpandya4927 Рік тому +3

    Love this react series :)
    Everything is of temporary interest on Yt but
    Hitesh sir's lectures have become permanent😇😍

  • @_Prabhat_EC
    @_Prabhat_EC Рік тому

    Kha tha mai etne din . web ka asli gyan to yha tha . Thanks a lot sir your teaching style makes you a great teacher.......

  • @nitishrajbongshi9311
    @nitishrajbongshi9311 Рік тому +12

    The differentiation algorithm compare two trees, one is the main DOM tree of the browser and the second one is the react tree created by the createRoot.

    • @abhinavgupta4866
      @abhinavgupta4866 Рік тому

      doesn't react itself keeps two trees one as old dom tree and one as current work in progress tree and compares both of em , and then later this changes are rendered on browser in real dom.

    • @rishabhinc2936
      @rishabhinc2936 11 місяців тому

      ​@@abhinavgupta4866that old dom tree is the reference of browsers dom i think

    • @namannema3349
      @namannema3349 9 місяців тому

      i have read it it differentiate current virtual dom with previous virtual dom and then updates them into new virtual dom and then using diffing algorith changes part of original dom

  • @namanvarshney1876
    @namanvarshney1876 Місяць тому +1

    Title Correction : Fiber instead of Fibre
    Much needed video ! 🙇🏻

  • @monsternika8873
    @monsternika8873 10 місяців тому +2

    Chai with Hitesh-Choudhary Sir is Amazing

  • @kishanvishwakarma903
    @kishanvishwakarma903 27 днів тому

    Sab youtuber h but aap real Guru h sir thanks
    Happy Diwali sir

  • @pratiksawant
    @pratiksawant Рік тому +4

    Was waiting for this really thank you for uploading sir thanks 🙏

  • @quickSilverXMen
    @quickSilverXMen Рік тому +1

    Virtual DOM in react ⚛
    Intro 0:00
    Start of the session 2:53
    createRoot ( ) method mechanism 3:23
    React fibre architecture 6:00
    What is Fibre 17:29
    conclude 20:05
    Thank you sir

  • @shraj340
    @shraj340 9 місяців тому +27

    k = hanji kaise h aap sabhi

  • @MOHDUMAIR-p5y
    @MOHDUMAIR-p5y 6 місяців тому +1

    jaise jaise m hitesh sir aap ki playlist se programming seekh rha hu i feel that i always want a teacher like you who always guide me with also a very minute details of the concepts..
    i hope that i will meet you one day

  • @Ezsnippits
    @Ezsnippits Рік тому +4

    Meja to chai mai hi hai sir, kuch bhi kho. Or wo bhi aap ke code ke saat

  • @thecalgarians4597
    @thecalgarians4597 6 місяців тому +1

    App dhanya hain Hitesh ji jo is level ka content YT pe free mein padha rahe hain. KUDOS ❤

  • @crazytechytech
    @crazytechytech Місяць тому

    thank you itna in-depth padhane k liye. we are blessed ki hum aapke students hai

  • @funkyboy4882
    @funkyboy4882 11 місяців тому +1

    are sir bohooot bhadiya video tha, mai khud aur dekhunga jaake reconciliation k baare mai, aur fiber ko bhi dekhunga, thank you so much

  • @avanidalal4758
    @avanidalal4758 10 місяців тому +2

    I really appreciate your efforts for this. I mostly understood the concepts the way you are explaining. Thank you so much sir

  • @jstar3257
    @jstar3257 Рік тому +1

    Understood the Concept of Virtual DOM, Reconciliation completely and get a little bit idea of Fibre as well....Thanks Sir

  • @binayakbidyasagar1536
    @binayakbidyasagar1536 11 місяців тому +1

    Pehli baar kisi theory/core video itne concentration se dekh raha tha. Aisa lag raha hei ye video series bht late mila mujhe.

  • @RadheRadhe-w1w3g
    @RadheRadhe-w1w3g 5 місяців тому

    Thanks sir so much
    1. re-rendering : it the process of updating virtual DOM or the tree
    2. diffing algo: Algo created by react developers to only update the neccesary part of the tree
    3.Reconcillation: diffing + re-rendering

  • @M_Sajid3037
    @M_Sajid3037 10 місяців тому +1

    i am very thankful of god for giving opportunity to watched out these type of content on UA-cam

  • @sandeepkarukayil
    @sandeepkarukayil Рік тому +1

    What a great explanation. The complex document felt so simple You are great Sir

  • @Mehak-shl
    @Mehak-shl Рік тому +1

    Best guru i ever found...no need to go coaching ❤🎉

  • @abhishekkashyap2984
    @abhishekkashyap2984 Рік тому +2

    Loved your way of teaching , how you makes concept crstal clear using a story.😌

  • @himanshudubey24
    @himanshudubey24 Рік тому

    Sir ek second bhi bore nahi laga itne dhyan se to me movie nahi dekhta sir just amazing work sir So addictive Series In whole UA-cam🙏.

  • @nehakaler6677
    @nehakaler6677 5 місяців тому

    Completed with 6th lecture. Thankyou Sir for this wonderful lecture. Loving the series.

  • @surajdubey4484
    @surajdubey4484 Рік тому

    I watched another tutorial on react before this but i'm was not getting confidence that I'm a react developer. Now I'm getting confidence in react. Thank you Hitesh .

  • @jayrai18
    @jayrai18 Рік тому +2

    21:10 sir till today, I never see this much level of content on youtube. Salue to you sir 💟

  • @geekguri_tech
    @geekguri_tech 10 місяців тому

    Great knowledge is delivered by Hitesh Sir with so much depth.

  • @azeemdeveloper4815
    @azeemdeveloper4815 8 місяців тому

    sir skilled software engineers sirf IIT se nhi Chai aur code se bhi nikalte hai. literally very nice, I followed your JS series, Backend NodeJS series , now I am following your reactJS series. do you I am an experienced developer in backend development with 2 years, but jo mene Yaha sikha wo mere ander confidence laa gaya

  • @yashagrawal9621
    @yashagrawal9621 5 місяців тому

    The knowledge gain after watching Hitesh sir's any video is just tremendous and mesmerizing.
    Hats off to sir's hard efforts and crazy experience.

  • @ishaangarg2001
    @ishaangarg2001 Рік тому

    Amazing way of teaching with next level of concepts.....................#Best_Series

  • @rahulsuthar324
    @rahulsuthar324 7 місяців тому

    Sir next level knowledge you are providing us. You are creating excitement regarding code, library, inner workings.

  • @gauravsrivastava17
    @gauravsrivastava17 9 місяців тому +1

    New and Interesting concepts never heard before
    Thank you Sir for sharing your lvl of experience with us ❤

  • @hiphop861
    @hiphop861 11 місяців тому +1

    Thank you sir. I hate front end a lot. You and Code with harry are two behind my confidence. Which is getting increased day by day in the front end

  • @shakir0x00
    @shakir0x00 8 місяців тому +1

    Thanks for the amazing content ,,,,, i have brough the course of harkarit singh 0-100 its a great course but i feel like i was not able to understand the react part so i saw your playlist on youtube and trust me i your course is 1000x better than the 99% of courses out there... LOTS OF LOVE FORM MY SIDE.

  • @pranavprakash6333
    @pranavprakash6333 5 місяців тому +2

    Your teaching makes us love coding rather than just learning it.🙏🙏

  • @hamzasajid7973
    @hamzasajid7973 6 місяців тому

    I 100% agree with Hitesh bhai we are ahead of a lot of developers due to this series. I started working on reactjs just by practicing js playlist chai aur code. I delivered reactjs tasks in my current project. I eagerly come this channel daily to practice reactjs and nodejs playlist.

  • @naincyshrivastava5566
    @naincyshrivastava5566 3 місяці тому

    I don't have words to express how much i'm addicted to the courses provided by u sir😇. So much in depth knowledge which is enough to make a beginner pro in everything.🤩🤩

  • @investonomy8758
    @investonomy8758 Рік тому +1

    sir hats of your teaching style . kya samjhate hai app maine bohot sare video dekha hai youtube pe per kahi pe bhi mujhe itna deep concept clearing video nehi mila . miane bass js complete kara tha aur react sikhne ke lia bohot sare channel dekha per samjhme kisi me nehi aya fir mujhe apka channel mila aur just boommmmm ane laga samajh me. maine to apka js wala series bhi dekhna start kar dia hai although mujhe pata hai . per iss ummed mai taki koi aur deep knowledge mil jaye. thank you sir

  • @aashishrai1138
    @aashishrai1138 Рік тому +1

    Sir aap Top Ho hum sab web students ki hope ho 😊

  • @kayumkhan_kks
    @kayumkhan_kks Рік тому

    OP sir, there is only one teacher on UA-cam and that is you sir, rest all are just content creators.

  • @vanshikasharma8685
    @vanshikasharma8685 4 місяці тому

    Very helpful channel you clear all the concepts and cover all the topics very easily . Thank You so much for building my confidence .

  • @alanguagee
    @alanguagee Місяць тому

    Htesh Sir, you are amazing I m learning this theory with you @5.30 AM
    Once again thank you.

  • @shubhamkashyap9708
    @shubhamkashyap9708 6 місяців тому

    One of the best teachers in the world .
    Thanks hitesh bhaiya❤

  • @ankushladani496
    @ankushladani496 Рік тому

    Story to aap ek dum ache se batate ho...😊

  • @kapadnisrohit
    @kapadnisrohit 6 місяців тому

    I recently gave an interview for an internship and i can confirm that these things are indeed important, i was asked reconciliation, jsx, higher order functions etc. in that interview. Thank You So Much sir for this important content 🙏

  • @kmato197
    @kmato197 27 днів тому

    can't belive this kind of content are free on youtube

  • @sarthakpatwa4133
    @sarthakpatwa4133 Рік тому

    you are the experienced teacher and your explanation is very clear

  • @learnwithsuyashshukla8347
    @learnwithsuyashshukla8347 9 місяців тому +1

    Video summary [00:00:00] - [00:08:00]:
    This video is a tutorial on React, a JavaScript library for building user interfaces. The video explains the concepts of virtual DOM, fiber, and reconciliation, and how they affect the performance and rendering of React applications.
    Highlights:
    [00:00:00] The purpose and importance of this video
    Not a hands-on practice, but useful for interviews and understanding
    Covers the behind-the-scenes of React, such as virtual DOM and fiber
    Uses an analogy of a doctor and a patient to explain the concept of virtual DOM
    [00:03:00] What is virtual DOM and how it works
    A JavaScript representation of the actual DOM
    Tracks the changes in the UI and updates only the necessary parts
    Avoids the costly operation of re-rendering the whole DOM
    [00:05:00] What is fiber and why it is needed
    A new implementation of React core algorithm
    The goal is to increase the stability of areas like animation, layout, and gesture
    The headline feature is incremental rendering, which allows to split rendering work into chunks and spread it over multiple frames
    [00:07:00] The features and benefits of fiber
    Ability to pause, abort, and reuse work
    Ability to assign priority to different types of updates
    Ability to batch updates more efficiently
    Ability to avoid dropping frames by working on low-priority updates in idle time

  • @afzalhamdulay
    @afzalhamdulay 11 місяців тому

    this video was not useful as coding wise but definitely increased my knowledge as i never heard about fibre from any tutorials . thankyou for updating about it.

  • @sagarsen1575
    @sagarsen1575 8 місяців тому

    I've been attempting to learn React for the past couple months. However, I felt in some way that I lack the confidence to understand how to react. That's when I saw your video. I have no idea how I got hooked on this video. I sincerely thank you, Sir.

  • @Naman_Srivastav
    @Naman_Srivastav 10 місяців тому

    Sir, at the beginning of the video, you mentioned that it would be boring, but I didn't even realize when the video ended.💯

  • @Muskan-qq8rv
    @Muskan-qq8rv 9 місяців тому

    i generally refrain from putting up comments but your content is so good, i could not help but appreciate your work through this simple comment. thank you so much sir

  • @SumitKumar-nd1nd
    @SumitKumar-nd1nd Рік тому +1

    I'm already watched Akshay Saini's React series, but you are a real GOAT of web dev.

  • @akshay6023
    @akshay6023 Рік тому +2

    Next level content . Thank you sir for this amazing session .

  • @Peaceful_mind949
    @Peaceful_mind949 10 місяців тому +2

    Kya hi sir , aapne to mereko aisa bna diya h ki jbtk ye neend nhi aati tbtk bs ye playlist chlti rhti
    maine phle bhi ek bar react pdha pr chodh diya pr is itni aasan lg rhi mja aa rha pdhne me

  • @sky_9460
    @sky_9460 Рік тому

    very good explaination, please keep it up. Request you to maintain this level of explanation and I really wish that this series get famous.

  • @ShubhamA_
    @ShubhamA_ 4 місяці тому

    thank you so much hitesh sir for providing this type of series for free .

  • @siddheshshiposkar6815
    @siddheshshiposkar6815 6 місяців тому

    It is very beneficial to the audiance who learn on the you tube. Thank you so much

  • @satishkumar-oi3rr
    @satishkumar-oi3rr Рік тому

    The explanation is too simple. Love you Hitesh Sir

  • @ajaysinghrathour8622
    @ajaysinghrathour8622 Рік тому +1

    Web Development sikhna h to Hitesh sir ki video to dekhna hi padega. hahahaha specially this video

    • @chaiaurcode
      @chaiaurcode  Рік тому +1

      Glad it helped 😊❤️

    • @ajaysinghrathour8622
      @ajaysinghrathour8622 Рік тому

      @@chaiaurcode Thanks a lot Sir .I want to meet you and After getting a job. I will meet you soon

  • @PraveenSaini-yo7kq
    @PraveenSaini-yo7kq 6 місяців тому

    Thank you so much sir for explaining in deatails react js Without any fees☺

  • @yashaswiverma3316
    @yashaswiverma3316 5 місяців тому +1

    fav teacher and coder❤

  • @abdulmatania8155
    @abdulmatania8155 10 місяців тому

    you are great Hitesh sir !!!!
    currently i'm in a service based company and i know i will be selected in top level product based company by learning and practicing content like this.
    Thankyou for providing these type of videos and teaching a self learning way.

  • @consolelog21
    @consolelog21 4 місяці тому

    Took one Udemy course of react, It was not this much deep about VDOM.
    Thank you for making videos for free.

  • @kartiklabhshetwar4317
    @kartiklabhshetwar4317 10 місяців тому

    This video is eye-opening for me! I didn't know you could learn programming this way!

  • @s4shiva946
    @s4shiva946 Рік тому

    sir you are best teacher in tech field

  • @akashchauhan3989
    @akashchauhan3989 Рік тому +1

    This series gonna break all records on UA-cam

  • @hiteshmaurya_
    @hiteshmaurya_ 9 місяців тому +1

    Thank you sir for this in depth knowledge.

  • @usamajabar4497
    @usamajabar4497 3 місяці тому

    Nice Tutorial!!! Highly Recommended For Beginners and Others!!!

  • @livelife3051
    @livelife3051 6 місяців тому

    Sir You're one of the Bests teachers for mine, Love from pakistan ❤❤

  • @yikes3807
    @yikes3807 Рік тому

    Sir thank you ❤ aap best ho jo bhi sikhate ho best in industry

  • @premsmishra
    @premsmishra 10 місяців тому

    Very nice and informative video on the fibre, virtual dom and reconciliation. Thanks

  • @prasadtambde3894
    @prasadtambde3894 Рік тому

    VD Fibre and Reconciliation... which motivating me to learn core arichtecher 😃

  • @sahilbani7020
    @sahilbani7020 Рік тому

    This course is immaculate, thank you sir for providing such in depth knowledge for free.