React Docs SPECIFICALLY state not to read from a "useRef" during renderinghttps://react.dev/reference/react/useRef#useref1) You can mutate the ref.current property. Unlike state, it is mutable. However, if it holds an object that is used for rendering (for example, a piece of your sta...