You'll hear about the "virtual DOM" with frontend libraries like React. React pioneered of keeping a copy of the DOM available to make changes to so it can make bulk changes to the page in order to not slow things down.
It's kind of like making batch database writes for performance reasons instead of a bunch of small ones.
Just dropping that tidbit because for a lot of folks that might be the first they hear of DOM.
Virtual DOM isn't just about rendering in batches. It's main use is to not (unnecessarily) render parts of the tree that don't receive new data, and to only render those that do.
React team doesn't use "virtual DOM" anymore. Dan Abramov told me this in a DM when I tagged him in a React reconciliation post of mine. He said the team avoids the term and basically just state that React renders a tree of elements.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice overview.
You'll hear about the "virtual DOM" with frontend libraries like React. React pioneered of keeping a copy of the DOM available to make changes to so it can make bulk changes to the page in order to not slow things down.
It's kind of like making batch database writes for performance reasons instead of a bunch of small ones.
Just dropping that tidbit because for a lot of folks that might be the first they hear of DOM.
Thanks so much! I’m not super familiar with React (it’s on my todo list) so I learned something new too :)
Virtual DOM isn't just about rendering in batches. It's main use is to not (unnecessarily) render parts of the tree that don't receive new data, and to only render those that do.
yeah sure ... here is an article about that and some Virtual DOM internals stuff.
dev.to/ycmjason/building-a-simple-...
thanks to : @ycmjason
React team doesn't use "virtual DOM" anymore. Dan Abramov told me this in a DM when I tagged him in a React reconciliation post of mine. He said the team avoids the term and basically just state that React renders a tree of elements.