title: useRef "refers to a value, but is being used as a type here."
body: <p>I'm trying to figure out how to tell react which element is being used as ref i.e. in my case</p>
  
  <pre><code>const circleRef = useRef&lt;AnimatedCircle&gt;(undefined);
  </code></pre>
  
  <p><code>AnimatedCircle</code> is an SVG component from a third party library, and defining it this way causes error</p>
  
  <p><a href="https://i.stack.imgur.com/KjlOp.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KjlOp.png" alt="enter image description here"></a></p>
  
  <p>Is there some universal way to define which element is ref?</p>