Key Points
“In interviews… keep it simple.
Props…
read-only… passed from parent to child.
State…
mutable… managed inside the component…
and triggers re-render.
Clear explanation…
creates strong impact.”
Bonus: Virtual DOM Flow
“Here’s a bonus concept… interviewers love this.
State changes…
then a new Virtual DOM is created…
Then React compares… old and new Virtual DOM…
And finally…
only the changed parts are updated… in the real DOM.
This process… is called reconciliation.