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

推荐订阅源

Martin Fowler
Martin Fowler
爱范儿
爱范儿
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
IT之家
IT之家
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
Microsoft Azure Blog
Microsoft Azure Blog
The GitHub Blog
The GitHub Blog
C
Check Point Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - Franky
G
Google Developers Blog
V
V2EX
雷峰网
雷峰网
美团技术团队
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
MongoDB | Blog
MongoDB | Blog
V
Visual Studio Blog
J
Java Code Geeks

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