Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

the virtual dom in react js

// the virtual dom in react js
React uses Virtual DOM, which can be thought of as a blueprint of the DOM. 
When any changes are made to React elements, the Virtual DOM is updated. 
The Virtual DOM finds the differences between it and the DOM and re-renders only the elements in the DOM that changed. 
This makes the Virtual DOM faster and more efficient than updating the entire DOM.
 
PREVIOUS NEXT
Tagged: #virtual #dom #react #js
ADD COMMENT
Topic
Name
9+8 =