React does not track ref.current mutations as reactive updates. The value changes, but the component is not re-rendered because of that mutation.