useDeferredValue
Learn how useDeferredValue lets a slow-to-render part of the UI lag behind a fast-changing value without blocking input.
useDeferredValue(value) returns a deferred copy of value that React may 'lag behind' the actual value during urgent updates, letting an expensive part of the UI that depends on it re-render at a lower priority. It's conceptually similar to useTransition, but it's applied at the point of consuming a value rather than at the point of setting state, which makes it useful when you don't control the state update itself (e.g., the value comes from a parent via props).
useDeferredValue is like a live scoreboard at a stadium that's allowed to lag a few seconds behind the actual game — spectators (urgent UI) keep watching smoothly in real time while the board (expensive UI) catches up shortly after, rather than freezing the whole stadium's view until the board updates instantly.