What does React use to efficiently update the browser UI?
Question 1 of 5
Check your React knowledge across components, state, hooks, rendering, and performance.
Frontend · About 3 minutes
Question 1 of 5
Review all 5 questions at your own pace. Open each answer to see the correct response and a concise explanation of the concept.
Topics covered
Correct answer
A virtual representation of UI state
React compares UI changes and updates the DOM efficiently based on component state.
Correct answer
useState
useState stores values that trigger a re-render when they change.
Correct answer
For expensive derived calculations
useMemo helps avoid recalculating expensive values unless dependencies change.
Correct answer
Changing props or state too broadly
State placed too high or recreated object props can cause large parts of the tree to re-render.
Correct answer
Controlled components
Controlled inputs use React state as the source of truth for field values.
Need a teammate, not a test?