NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
React UI Engineering: High-Performance Architecture
State Management & Prop Flow
Quiz
Chapter Quiz: State Management & Prop Flow
Mastery Assessment: State & Prop Flow
Complete this assessment with 100% score to master this chapter.
01
Why is it mandatory to treat `props` as immutable objects?
To save memory.
To ensure predictable unidirectional data flow and enable shallow-comparison optimizations.
Because JavaScript prevents object modification.
To prevent CSS collisions.
02
When updating state based on its previous value, which pattern is architecturally sound?
setCount(count + 1)
setCount(prev => prev + 1)
count++
this.state.count = newCount
03
What is 'Automatic Batching' in React 18?
Automatically installing dependencies.
Grouping multiple state updates into a single re-render, even inside promises and timeouts.
Running all components in parallel.
A feature for bulk file uploads.
Submit Answers
Back to Lesson
Next Chapter