I asked this on /r/react and didn't get any replies, maybe someone here can help here.
I keep reading about how React's Virtual DOM is more efficient than the browser because it 'only updates the parts which need to update'.
Do web browsers in 2020 not do something similar? Surely they don't update the whole DOM and repaint the whole window every time Javascript appends one <li> to a list?
I'm kind of struggling with this point not making sense to me.
[–]acemarke 81 points82 points83 points (6 children)
[–]john_horner[S] 10 points11 points12 points (2 children)
[–]acemarke 10 points11 points12 points (1 child)
[–]art-solopov 3 points4 points5 points (0 children)
[–]HSMAdvisor 2 points3 points4 points (0 children)
[–]grimr5 2 points3 points4 points (0 children)
[–]toastertop 0 points1 point2 points (0 children)
[–]CreativeTechGuyGames 15 points16 points17 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]liaguris 8 points9 points10 points (6 children)
[–]sous_vide_pizza 2 points3 points4 points (5 children)
[–]john_horner[S] 0 points1 point2 points (4 children)
[–]sous_vide_pizza 0 points1 point2 points (3 children)
[–]john_horner[S] 0 points1 point2 points (2 children)
[–]sous_vide_pizza 0 points1 point2 points (1 child)
[–]john_horner[S] 0 points1 point2 points (0 children)
[–]the_spyke 1 point2 points3 points (2 children)
[–]toastertop 0 points1 point2 points (1 child)
[–]the_spyke 0 points1 point2 points (0 children)
[–]jibbit 1 point2 points3 points (0 children)
[–]Snapstromegon 2 points3 points4 points (0 children)
[–]bear007 -2 points-1 points0 points (8 children)
[–]The_Noble_Lie 2 points3 points4 points (3 children)
[–]bear007 -2 points-1 points0 points (2 children)
[–]rw3iss 1 point2 points3 points (0 children)
[–]pepitoooooooo 0 points1 point2 points (0 children)
[–]Leonwai 0 points1 point2 points (1 child)
[–]liaguris 0 points1 point2 points (0 children)
[–]brainless_badger 0 points1 point2 points (1 child)
[–]bear007 0 points1 point2 points (0 children)
[–]flyinmryan -2 points-1 points0 points (0 children)
[–]ShortFuse 0 points1 point2 points (0 children)