React·Intermediate·Conceptual·1 min read
Where should browser-only APIs be read?
Short interview answer
Use them in client-only event handlers, effects, or deliberately isolated client boundaries. If their values affect initial UI, provide a deterministic server-compatible snapshot or render a stable placeholder until after hydration.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.