Tag

Virtual DOM

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 10, 2024 · Frontend Development

Why Not Use :key="index" in Vue v-for? Understanding Virtual DOM and Diff Algorithm

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
Why Not Use :key="index" in Vue v-for? Understanding Virtual DOM and Diff Algorithm
Code Mala Tang
Code Mala Tang
Oct 23, 2024 · Frontend Development

Master the Top 7 React Concepts to Join the Elite 5% of Developers

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.

HooksReactVirtual DOM
0 likes · 9 min read
Master the Top 7 React Concepts to Join the Elite 5% of Developers
IT Services Circle
IT Services Circle
May 31, 2024 · Frontend Development

Understanding Virtual DOM and Popular Implementations

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
Understanding Virtual DOM and Popular Implementations
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Nov 27, 2023 · Frontend Development

From jQuery to Virtual DOM: Evolution, Advantages, and the Rise of No‑Virtual‑DOM Frameworks

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
From jQuery to Virtual DOM: Evolution, Advantages, and the Rise of No‑Virtual‑DOM Frameworks
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 30, 2023 · Frontend Development

Comprehensive Guide to React Lifecycle, Hooks, Fiber, Virtual DOM, and Advanced Patterns

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.

FiberHooksLifecycle
0 likes · 36 min read
Comprehensive Guide to React Lifecycle, Hooks, Fiber, Virtual DOM, and Advanced Patterns
Tencent Cloud Developer
Tencent Cloud Developer
Jan 6, 2023 · Frontend Development

Understanding Vue's Diff Algorithm: Rules, Implementation, and Optimizations

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 AlgorithmJavaScriptVirtual DOM
0 likes · 6 min read
Understanding Vue's Diff Algorithm: Rules, Implementation, and Optimizations
HelloTech
HelloTech
Oct 9, 2022 · Frontend Development

Understanding Vue2 and Vue3 Diff Algorithms: Core Principles and Process

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 AlgorithmJavaScriptVirtual DOM
0 likes · 22 min read
Understanding Vue2 and Vue3 Diff Algorithms: Core Principles and Process
Yiche Technology
Yiche Technology
Apr 19, 2022 · Frontend Development

Vue vs React: Technical Comparison and Project Selection Guide

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
Vue vs React: Technical Comparison and Project Selection Guide
IT Services Circle
IT Services Circle
Apr 17, 2022 · Frontend Development

A 40-line Diff Algorithm Implementation for React's Virtual DOM

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
A 40-line Diff Algorithm Implementation for React's Virtual DOM
TikTok Frontend Technology Team
TikTok Frontend Technology Team
Feb 23, 2022 · Frontend Development

Understanding Virtual DOM and Diff Algorithms in Frontend Frameworks

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
Understanding Virtual DOM and Diff Algorithms in Frontend Frameworks
Sohu Tech Products
Sohu Tech Products
Dec 15, 2021 · Frontend Development

Implementing a Simple Virtual DOM Library with Patch and Diff Algorithms

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 AlgorithmJavaScriptPatch
0 likes · 18 min read
Implementing a Simple Virtual DOM Library with Patch and Diff Algorithms
Beike Product & Technology
Beike Product & Technology
Nov 5, 2021 · Frontend Development

Understanding React Fiber Architecture and Diff Algorithm in React 16

This article explains the React Fiber architecture introduced in React 16, compares it with React 15, details how Fiber nodes form a tree, and walks through the source-level implementation of the Diff algorithm, including single-node and multi-node updates, with code examples and diagrams.

Diff AlgorithmFiberReact
0 likes · 17 min read
Understanding React Fiber Architecture and Diff Algorithm in React 16
Tencent Music Tech Team
Tencent Music Tech Team
Oct 1, 2021 · Frontend Development

Tree and View Systems Across Web, Android, iOS, and Flutter

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
Tree and View Systems Across Web, Android, iOS, and Flutter
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 23, 2021 · Frontend Development

Understanding Virtual DOM and Diff Algorithm in Vue.js (Vue2 and Vue3)

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 AlgorithmOptimizationPatch
0 likes · 28 min read
Understanding Virtual DOM and Diff Algorithm in Vue.js (Vue2 and Vue3)
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 22, 2021 · Frontend Development

Design Choices in Frontend Frameworks: Virtual DOM, Reactive APIs, and the Rise of SolidJS and Svelte

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.

ReactivitySolidJSSvelte
0 likes · 10 min read
Design Choices in Frontend Frameworks: Virtual DOM, Reactive APIs, and the Rise of SolidJS and Svelte
Tencent Cloud Developer
Tencent Cloud Developer
Sep 15, 2021 · Frontend Development

Deep Dive into Vue.js Virtual DOM Diff Algorithm and Source Code Analysis

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
Deep Dive into Vue.js Virtual DOM Diff Algorithm and Source Code Analysis
Beike Product & Technology
Beike Product & Technology
Dec 24, 2020 · Frontend Development

React Server-Side Rendering (SSR): Principles, Implementation, and Demo

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
React Server-Side Rendering (SSR): Principles, Implementation, and Demo
Xueersi Online School Tech Team
Xueersi Online School Tech Team
May 22, 2020 · Frontend Development

Analyzing Vue.js vm._update and __patch__ Implementation

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.

Component LifecyclePatch FunctionVirtual DOM
0 likes · 16 min read
Analyzing Vue.js vm._update and __patch__ Implementation