Concept Flow - Updating phase
Event or State Change
React schedules update
Component re-renders
JSX evaluated with new state/props
React compares new and old DOM (diff)
DOM updates applied
Browser shows updated UI
When state or props change, React re-renders the component, compares the new output with the old, and updates the browser view.