useRef vs useState in Streaming UIs

How React's primitives behave differently when chunks arrive every 50 milliseconds, and when to reach for useRef over useState in streaming UIs.