Create a modern web application with React
Difficulty: Junior ● Progress: 0 / 0 modules completed
Under the Hood of React

Before learning how to create dynamic components with React, it's useful to understand what happens under the hood. This helps you better anticipate React's sometimes surprising behaviors, and above all, build efficient interfaces.
Let's start with the heart of the engine: the Virtual DOM.
The Virtual DOM
The DOM (Document Object Model) is the HTML structure displayed in your browser. Modifying this DOM is costly in terms of performance.
To optimize all this, React uses a Virtual DOM: a JavaScript copy of the real DOM. Every time something changes in your component (a state, a prop), React:
- Recreates a new version of this virtual copy
- Compares the old version with the new one
- Determines the differences (this is the diffing algorithm)
- Applies only the actual changes to the browser
You need to purchase this course to read this module!
Or !