The fact that an update to a ref.current value doesn't trigger a re-render is an intentional feature. React doesn't keep track of the current value of a ref. You're responsible for referencing and mutating that value yourself.
useRef ensures that the value is associated with a particular instance of a component, differentiating it from just a regular variable outside the component. It promises to store the object as long as that component exists.
Collection
[
|
...
]