Q156-Q160

Revision Sheet

Memoization

React memoization helps only when identity is stable and the avoided render or calculation work is meaningful.

Mutable and Reducer State

Refs store mutable non-visual values, while reducers make complex state transitions explicit and testable.

Reusable Logic

Custom hooks compose stateful behavior, but each call has its own state and the abstraction must keep ownership clear.