From 58cea33cc0bafa0a689d58fda9e821a25a49968d Mon Sep 17 00:00:00 2001 From: A R Panchal <64309592+abhi-2107@users.noreply.github.com> Date: Mon, 14 Jul 2025 11:34:02 +0530 Subject: [PATCH] wrong defination for diffing --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e1764be..d640618 100644 --- a/README.md +++ b/README.md @@ -1023,7 +1023,7 @@ Curated top React.js interview questions with high quality answers for acing you - The virtual DOM in React is a lightweight copy of the actual DOM. When the state of a component changes, React creates a new virtual DOM tree and compares it with the previous one using a process called "reconciliation." Only the differences are then updated in the actual DOM, making updates more efficient. The benefits include improved performance and a more declarative way to manage UI. However, it can add complexity and may not be as performant for very simple applications. + The virtual DOM in React is a lightweight copy of the actual DOM. When the state of a component changes, React creates a new virtual DOM tree and compares it with the previous one using a process called diffing and the process of updating DOM is called "reconciliation." Only the differences are then updated in the actual DOM, making updates more efficient. The benefits include improved performance and a more declarative way to manage UI. However, it can add complexity and may not be as performant for very simple applications.