Rendering should remain pure, so ref.current is generally read or written in event handlers or Effects. A predictable one-time initialization is a documented exception.