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
easy
React
What should determine whether a piece of state is lifted to a common ancestor versus kept local?
A
Personal preference — it never matters
B
Whether more than one component genuinely needs to read or write that same value
C
Whether the value is a string or a number
D
Whether the component is a class or a function component
Check Answer