DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
React Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
React
A component destructures only `{ theme }` from a large context value that also contains `user` and `setUser`. What happens when only `user` changes?
A
The component does NOT re-render, since it doesn't read the user field
B
The component re-renders anyway — Context re-renders are all-or-nothing at the Provider's value reference, not per-field
C
React throws a warning about unused context fields
D
Only the fields actually destructured are updated
Check Answer