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
Why does passing an inline object literal in the dependency array cause an effect to re-run every render?
A
React doesn't support objects in dependency arrays
B
Object.is compares by reference, and a literal creates a new reference every render regardless of its contents
C
Objects are always considered 'changed' by React for security reasons
D
This is a bug in React that will be fixed
Check Answer