-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

React Interview Guide
By :

DOM stands for Document Object Model and it represents the entire UI of a web page (HTML) in a tree data format. virtual DOM was not invented by React, but it uses it as its core feature. Its main purpose is to minimize the number of DOM operations when re-rendering the UI. React uses this feature to enhance its performance. There’s a high chance you’ll get questions related to this topic in an interview.
virtual DOM is an in-memory, lightweight virtual representation of Real DOM that’s generated by React components. The virtual representation of a UI is stored in memory and synced with Real DOM to align with the latest state updates. This is possible through a library known as ReactDOM, and this step happens in between the render function being called and elements being displayed on the screen. This entire process is known as reconciliation.
React and Vue.js technologies use...