And one more important thing…
React is declarative.
That means…
we describe what the UI should look like…
and React handles the updates.
In interviews…
always mention these keywords…
Component-based…
Reusable UI…
Virtual DOM…
and Declarative approach.
What is Virtual DOM?
“Virtual DOM… is a lightweight copy… of the real DOM.
Instead of updating the real DOM directly…
React first updates the Virtual DOM.
When something changes…
React creates a new Virtual DOM.