惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Last Week in AI
Last Week in AI
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
量子位
aimingoo的专栏
aimingoo的专栏
D
Docker
F
Fortinet All Blogs
T
Tailwind CSS Blog
V
V2EX
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
G
Google Developers Blog
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
A
About on SuperTechFans
IT之家
IT之家

Maggie Appleton

The Dark Forest and Generative AI One Developer, Two Dozen Agents, Zero Alignment Gas Town’s Agent Patterns, Design Bottlenecks, and Vibecoding at Scale January 2026 | Maggie Appleton A Treatise on AI Chatbots Undermining the Enlightenment A Brief History & Ethos of the Digital Garden Vibe Code is Legacy Code May 2025 | Maggie Appleton Home-Cooked Software and Barefoot Developers Statistically, When Will My Baby Be Born? Speculative Calendar Events ChatGPT Would be a Decent Policy Advisor March 2025 | Maggie Appleton The Expanding Dark Forest and Generative AI Humanity's Last Exam Squish Meets Structure Common Misconceptions in AI Undetected AI Exam Answers Unbaited Smidgeons Growing a Human: The First 30 Weeks How to Import Academic Papers from Zotero into Tana December 2024 | Maggie Appleton Aesthetic Command Lines with Hyper, Spaceship, and Oh My Zsh Leaving Elicit July 2024 | Maggie Appleton A Short History of Bi-Directional Links The Pattern Language of Project Xanadu Assumed Audiences Ambient Co-presence
What the Fork is the React Virtual DOM
2019-01-20 · via Maggie Appleton

A drawing of the react logo and two browser windows stacked on top of each other

When I was first learning React

Drawing the Invisible: React Explained in Five Visual Metaphors

Explaining React through visual metaphors I couldn’t quite wrap my head around why it was any different to JavaScript.

The idea of the virtual DOM system helped clarify a few things for me. Primarily it got me to understand the DOM, the virtual DOM, and your React app are all separate systems talking to one another. Not one big mesh. While learning it I drew out an explanation you can see below.


Disclaimer

The React team no longer uses the “Virtual DOM” as a mental model for how React works under the hood. Instead Dan wrote up a nice long explanation on React as a UI Runtime which clarifies the details how React updates the UI.

They still have a section of the docs about the Virtual DOM , but it’s not an essential piece of the React ecosystem to learn about. The below explanation will still help you understand the basic concept that React figures out what needs to change on the DOM before changing it, but go to other sources if you want a more in-depth explanation.

One of the reasons React is so darn fast at updating changes  is that it uses a virtual DOM

All the code we write in React only interacts with this virtual DOM

This is helpful because passing the actual DOM lots of changes is slow

React's DOM runs a diffing algorithm

Want more illustrated notes on web development?

Take a look at Building Custom React Hooks

Building Custom React Hooks

Illustrated notes on building custom React hooks , JSX is a Lovechild

JSX is a Lovechild

Illustrated notes on how JSX in React works
or find out What the Fork is Babel?

What the Fork is Babel?

Illustrated notes on how Babel works