title: "Warning: Function components cannot be given refs" error while using Link in nextJs
body: <blockquote>
  <p>Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?</p>
  </blockquote>
  <p>I am getting this error when in nextJs when I wrap an Image tag inside a Link tag :</p>
  <pre><code>&lt;Link href=&quot;/&quot;&gt;
     &lt;Image src={logo} width={50} height={50} className=&quot;btn rounded-full bg-transparent&quot; /&gt;
  &lt;/Link&gt;
  </code></pre>