Tagged articles
Virtual DOM
49 articles · Page 1 of 1
Vue 3.6 released two release candidates in a single week with 90% of updates targeting Vapor Mode, a new compilation strategy that bypasses virtual DOM diffing, while also introducing a reactivity kernel rewrite based on alien-signals; Vue 4.0 will stabilize these features without breaking API changes.
ReactivityRelease CandidateVapor Mode
0 likes · 5 min read

This article explains how React’s container concepts connect JSX, the virtual DOM, and the real DOM, covering component types, root and container components, fragments, state and data flow, reuse patterns like hooks and HOCs, and stability tools such as Suspense, Error Boundaries, and StrictMode.
JSXReactState Management
0 likes · 9 min read

This article explains why web pages feel sluggish, how React Fiber’s interruptible asynchronous rendering solves the jank problem, and walks through progressively refined implementations—from a basic React demo to a full Fiber renderer with work‑loop scheduling, diffing, and performance optimizations.
Diff AlgorithmFiberJavaScript
0 likes · 19 min read

Vue 3.6 introduces Vapor Mode, a compile‑time rendering strategy that bypasses the virtual DOM to deliver higher performance and smaller bundle sizes, while still allowing developers to mix it with traditional VDOM where needed.
Vapor ModeVirtual DOMVue
0 likes · 4 min read

This article explains why using :key="index" in Vue v-for loops is problematic, describes the virtual DOM compilation process, demonstrates the diff algorithm with examples, and provides best practices for key usage to improve rendering performance.
Diff AlgorithmVirtual DOMVue
0 likes · 6 min read

This article explores seven essential React concepts—including component lifecycle, advanced Hooks, virtual DOM, state management with Context and Redux, Refs, prop‑drilling solutions, and the new Suspense and Concurrent Mode—to help developers boost performance, scalability, and expertise.
ReactVirtual DOM
0 likes · 9 min read

This article explains the concept of the Virtual DOM, its performance benefits in front‑end development, and presents several open‑source implementations such as Million.js, Snabbdom, virtual‑dom, blockdom, Maquette, and additional lightweight libraries, each with brief descriptions and GitHub links.
ImplementationJavaScriptVirtual DOM
0 likes · 6 min read

From jQuery’s imperative DOM hacks to React’s virtual‑DOM abstraction and now to compile‑time, no‑virtual‑DOM frameworks like Svelte and Solid, the front‑end has shifted toward declarative UI, fine‑grained reactivity, and performance‑focused optimizations, while virtual‑DOM remains widely used but increasingly challenged.
FrameworksFront-endJavaScript
0 likes · 21 min read

This article provides an in‑depth overview of React class component lifecycles before and after version 16, the new lifecycle methods, virtual DOM and diff algorithm, asynchronous rendering with Fiber, state batching, higher‑order components, render props, and error boundaries, illustrating each concept with code examples.
FiberLifecycleVirtual DOM
0 likes · 36 min read

The article explains Vue’s virtual‑node diff algorithm, detailing depth‑first traversal, head‑tail pointer comparisons, an index‑map for moved nodes, post‑traversal addition/removal handling, and Vue 3’s static‑vnode optimization, showing how these techniques achieve efficient O(n) DOM updates.
Diff AlgorithmVirtual DOMVue
0 likes · 6 min read

The article explains how Vue 2’s diff algorithm uses head‑to‑tail comparisons and a key‑to‑index map to patch, add, or remove nodes, while Vue 3 improves efficiency by building a key‑to‑new‑index map, computing the longest increasing subsequence, and moving only non‑LIS nodes, reducing DOM operations.
Diff AlgorithmFrontend DevelopmentJavaScript
0 likes · 22 min read

This article compares Vue and React by examining their template syntax, virtual DOM implementations, update strategies, data binding mechanisms, and performance characteristics, offering practical guidance on choosing the appropriate framework for projects of varying size and browser compatibility requirements.
ReactVirtual DOMVue
0 likes · 10 min read

This article explains the design and implementation of a minimal 40‑line Diff algorithm for React’s virtual DOM, covering node attribute changes, insertions, deletions, and moves, and provides a complete TypeScript demo that marks nodes with placement or deletion flags for efficient DOM updates.
Diff AlgorithmJavaScriptReact
0 likes · 10 min read

This article explains the concept of virtual DOM, its advantages over direct DOM manipulation, details the diff algorithm including same‑layer comparison, pointer techniques, and longest increasing subsequence optimizations in Vue2 and Vue3, and discusses key usage and performance considerations.
Diff AlgorithmVirtual DOMVue
0 likes · 23 min read


政采云技术Feb 22, 2022 · Frontend Development
This article provides a thorough analysis of Snabbdom’s virtual DOM implementation, explaining core concepts such as vnode structure, the diff algorithm, and the patch process, and includes detailed code walkthroughs and diagrams to help developers understand and apply these mechanisms in front‑end projects.
Diff AlgorithmJavaScriptSnabbdom
0 likes · 19 min read

This article explains how to build a lightweight virtual DOM library in JavaScript, covering the creation of VNode objects, the patch and diff algorithms, handling of attributes, classes, styles, and events, and demonstrates a step‑by‑step implementation using the Snabbdom approach.
Diff AlgorithmJavaScriptSnabbdom
0 likes · 18 min read

This article traces the evolution of mini programs, explains their dual‑thread model, details the core components such as WAWebview, WAService, the virtual DOM and JSBridge, and shows how wcc and wcsc compile wxml and wxss into executable JavaScript and styles.
JSBridgeVirtual DOMWeChat Mini-Program
0 likes · 19 min read

The article walks through a puzzling drag‑and‑drop sorting bug in a Vue admin table, explains why the virtual DOM diverged from the real DOM, and shows that adding a unique row‑key to the el‑table element resolves the issue while highlighting best coding practices.
Drag-and-DropSortableJSVirtual DOM
0 likes · 14 min read

These articles compare how Web, Android, iOS, and Flutter represent UI structures—detailing the DOM and Virtual DOM creation, diffing, and rendering on the Web, and the XML‑based layout inflation, view hierarchy, styling, and drawing pipeline on Android—to help front‑end developers grasp each platform’s tree‑based architecture.
AndroidFlutterView System
0 likes · 11 min read

This article explains the concept of virtual DOM, its structure, and how Vue's diff (patch) algorithm works, including detailed code walkthroughs, optimization strategies, key usage, and differences between Vue2 and Vue3 implementations, helping readers fully grasp the underlying principles and performance improvements.
Diff AlgorithmVirtual DOMVue.js
0 likes · 28 min read

The article examines core design decisions in modern frontend frameworks—immutable tree‑diff versus mutable reactive models, update granularity, virtual‑DOM usage, DSL choices, and the performance trade‑offs illustrated by React, Vue, SolidJS and Svelte, while also exploring component portability via WebComponents.
Framework DesignReactivitySolidJS
0 likes · 10 min read

The article thoroughly explains Vue.js’s virtual‑DOM diff algorithm, detailing its depth‑first traversal, same‑level node comparison, the sameVnode key/selector check, index map creation, O(n) head‑tail and index‑based matching loops, Vue 3 static‑type optimizations, and a practical implementation for array change detection.
Diff AlgorithmVirtual DOMVue.js
0 likes · 6 min read


ByteFEAug 19, 2021 · Frontend Development
This article provides a comprehensive technical analysis of the diff algorithm and Virtual DOM, detailing their core principles, O(n) complexity optimizations, and practical implementations across Vue 2.x, Vue 3.x, React, and the Snabbdom library.
DOM ReconciliationDiff AlgorithmReact
0 likes · 24 min read


ByteFEJul 15, 2021 · Frontend Development
This article explains what the Virtual DOM is, why it improves performance, how React implements it through ReactElements and Fiber, and details the diff algorithm and reconciliation process that enable efficient UI updates in modern frontend development.
Diff AlgorithmFiberReact
0 likes · 28 min read

This article walks through Vue 2.0's core source code, explaining the initialization and mounting process, the three‑stage template compilation (parse, optimize, generate), the reactivity system with dependency collection, and how the virtual DOM and patch algorithm update the view.
ReactivityVirtual DOMVue.js
0 likes · 11 min read

This article explains React server-side rendering (SSR), covering the differences between client-side rendering (CSR) and SSR, their advantages and disadvantages, and provides a step-by-step guide to implementing a simple SSR demo with React.
BabelCSRExpress
0 likes · 11 min read

This article provides a detailed walkthrough of Vue.js’s internal vm._update method, its reliance on the core __patch__ function, and the surrounding lifecycle mechanisms, illustrating each step with source code excerpts and diagrams to clarify how virtual DOM nodes are transformed into real DOM elements.
Frontend DevelopmentPatch FunctionVirtual DOM
0 likes · 16 min read

London Python engineer Oliver Russell created a 33‑line JavaScript library that mimics React by generating a virtual DOM, diffing it against the previous version, and efficiently updating the real DOM, with examples including a ToDo app, tic‑tac‑toe, calendar picker and snake game.
MithrilReactTutorial
0 likes · 6 min read

This article explains how Vue 2 implements a virtual DOM by describing the structure of VNode objects, the render function, the createElement process, and the normalization utilities, providing detailed code examples and step‑by‑step analysis of the rendering pipeline.
JavaScriptVirtual DOMVue
0 likes · 14 min read

This article compiles detailed front‑end interview answers covering HTTP request limits, Virtual DOM benefits, CommonJS vs ES6 modules, cookie/session/token differences, image format selection, first‑paint and white‑screen metrics, mini‑program vs H5 distinctions, floating‑point precision, and V8 engine execution.
HTTPInterviewModules
0 likes · 14 min read

This article explains the Virtual DOM concept, outlines a state‑driven rendering approach, implements a minimal Virtual DOM (VD) structure, creates a diff algorithm to generate patch objects, applies those patches to the real DOM, and compares its performance with full re‑rendering.
DOM PatchingDiff AlgorithmFrontend Development
0 likes · 8 min read

The article explains the Virtual DOM as a lightweight JavaScript object with tag, props, and children, shows how JSX compiles to VD using a custom pragma, provides helper functions to create real DOM from VD, and outlines how batching updates reduces reflows, previewing a future diff algorithm.
Diff AlgorithmFront-endJSX
0 likes · 7 min read

This article walks through Vue.js's internal workflow, covering global overview, initialization and mounting, compilation stages, reactivity mechanisms, virtual DOM creation, and view updating, providing a comprehensive picture for developers seeking deeper insight into the framework.
ReactivityVirtual DOMVue.js
0 likes · 6 min read

This article provides a detailed overview of ReactJS, covering its origins, virtual DOM mechanism, component‑based architecture, common misconceptions, setup steps, JSX syntax, component properties, state management, lifecycle methods, and practical code examples for building interactive web interfaces.
Component ArchitectureJSXJavaScript
0 likes · 14 min read

React, an open‑source UI library created by Facebook, uses a virtual DOM and component‑based architecture—both class‑based and functional—to build modular, reusable interfaces, while JSX provides an XML‑like syntax that compiles to JavaScript, enhancing development efficiency and maintainability.
Component-Based ArchitectureES6 Class ComponentFunctional Component
0 likes · 9 min read

This article explains how React decides when to re‑render components, why default behavior can be costly, and how developers can use state changes and the shouldComponentUpdate method to control rendering and improve performance.
ReactVirtual DOMfrontend performance
0 likes · 6 min read

This article explains the concept and implementation of virtual DOM, focusing on Vue's use of the Snabbdom algorithm, detailing its node structure, creation, update process, lifecycle hooks, and code examples to illustrate how virtual DOM optimizes front‑end performance.
JavaScriptSnabbdomVirtual DOM
0 likes · 6 min read

This article explains why an intermediate data structure is needed for 3D rendering in a React‑like Virtual DOM environment, how to keep it reactively synchronized with raw graph data using dependency analysis, proxies, and conversion functions, and the performance benefits of minimal partial updates.
Reactive ProgrammingVirtual DOMdata synchronization
0 likes · 12 min read

This article examines React's Virtual DOM by dissecting the React source code, explaining the structure of the React object, ReactElement factory, the createElement implementation, and how these pieces combine to build a virtual DOM tree for rendering components.
JavaScriptReactReactElement
0 likes · 11 min read

In a playful interview, React explains its origins at Facebook, the virtual DOM mechanism, component design principles, performance optimizations, and real‑world usage, while code examples illustrate how the library simplifies UI development for modern web applications.
Component ArchitectureJavaScriptReact
0 likes · 9 min read

Vue.js 2.0 initializes a component via the _init method, merges options, and mounts it with $mount, which creates a render function—whether from a custom function, template, or element—producing a Virtual DOM VNode that the patch algorithm diffs against the previous VNode to efficiently update the real DOM.
Frontend DevelopmentInitializationRendering
0 likes · 8 min read

This article introduces React, the Facebook‑originated JavaScript UI library, explaining its rise in popularity and core concepts—JSX syntax that compiles to React.createElement calls, the virtual DOM that efficiently batches updates, and a component architecture that separates props and state for reusable, maintainable code.
Component ArchitectureFrontend DevelopmentJSX
0 likes · 9 min read

This article provides a comprehensive overview of the Avalon2 JavaScript framework, detailing its evolution from Avalon1, performance improvements via virtual DOM, componentization, non‑intrusive design, compatibility features, backend rendering capabilities, and related tools such as Arthur and mmRequest.
Avalon2ComponentizationFrontend Framework
0 likes · 7 min read

React’s diff algorithm, the engine behind Virtual DOM, optimizes UI rendering by comparing tree, component, and element structures using strategies like tree diff, component diff, and element diff, enabling efficient updates that minimize DOM operations and boost performance.
Diff AlgorithmReactVirtual DOM
0 likes · 7 min read

This article explains how React’s diff algorithm works with the Virtual DOM, detailing tree, component, and element diff strategies, optimization assumptions, and practical guidelines to achieve high‑performance UI rendering while minimizing unnecessary DOM operations.
Diff AlgorithmReactVirtual DOM
0 likes · 7 min read

This article provides a comprehensive overview of ReactJS, covering its origin, virtual DOM performance benefits, component-based architecture, JSX syntax, setup instructions, and multiple code examples that illustrate rendering, state management, lifecycle methods, and component nesting for modern front‑end development.
@ComponentJSXReactJS
0 likes · 15 min read


WeChatFEMar 22, 2016 · Frontend Development
This article explains how to implement a basic Virtual DOM algorithm in 300–400 lines of JavaScript, covering state‑management motivations, tree representation, diffing, and patching, with step‑by‑step code examples and visual illustrations to help developers understand and build their own lightweight Virtual DOM library.
Diff AlgorithmVirtual DOMdom manipulation
0 likes · 13 min read

This article explores React's soaring popularity, explains its core concepts such as JSX, virtual DOM, component architecture, lifecycle methods, server‑side rendering, and React‑Native, and demonstrates how these features give developers a powerful, modern front‑end toolkit.
Frontend DevelopmentReactReact Native
0 likes · 17 min read

This article explains how React addresses the challenges of dynamic data rendering in complex front‑end interfaces by using a virtual DOM, component‑based architecture, and efficient diffing, and demonstrates these concepts with a practical Tab selector component implementation.
Component ArchitectureReactUI Development
0 likes · 10 min read
