title: How to pass no arguments in forwardRef?
body: <p>I have a custom component using using <code>forwardRef()</code> and I use it multiple times<br />
  like this:</p>
  <pre><code>const CustomComp = React.forwardRef(({props...},{ref1,ref2})=&gt;{...}); //this is in another file
  
  
  const CombinedRef={ref1:useRef(),ref2:useRef()};
  
  &lt;CustomComp ref={CombinedRef}/&gt;  //case 1
  &lt;CustomComp/&gt;  //case 2
  </code></pre>
  <p>but there are occasions where the custom component doesn't need a <code>ref</code> like in the second case<br />
  but if I don't pass the <code>ref</code> in case 2 it gives an error</p>
  <blockquote>
  <p>null is not an object</p>
  </blockquote>
  <p>so far my only solution has been <code>&lt;CustomComp ref={{}}/&gt; //case 2</code><br />
  but is there a way where I don't have to pass ref in case 2 ?</p>