In React's mental model, what is the relationship between a component "rendering" and the actual DOM being updated?
- aRendering and updating the DOM are the same step; calling a render function writes directly to the page
- bRendering produces a new UI description in memory, which React diffs against the previous one before touching the DOM✓
- cRendering only happens once per component ever, and all later updates go straight to the DOM without comparison
- dThe DOM is updated first, and the render function runs afterward to read the result back into state
Explanation:Calling a component function ("rendering") just returns a tree of React elements — a description of what the UI should look like. React then reconciles this new tree against the previous one and applies only the necessary mutations to the real DOM. A render does not guarantee a DOM write; if the resulting description is unchanged, nothing is touched on the page.