title: Typescript RefForwardingComponent not working
body: <p>I am trying to make my component accept a ref.</p>
  
  <p>I have a component like so:</p>
  
  <pre class="lang-js prettyprint-override"><code>const MyComponent: RefForwardingComponent&lt;HTMLDivElement, IMyComponentProps&gt; = (props, ref) =&gt; {
      return &lt;div ref={ref}&gt;Hoopla&lt;/div&gt;
  }
  </code></pre>
  
  <p>But when I try to pass a ref to is like so:</p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;MyComponent ref={myRef}&gt;&lt;/MyComponent&gt;
  </code></pre>
  
  <p>... I get this error:</p>
  
  <pre><code>Property 'ref' does not exist on type 'IntrinsicAttributes &amp; IMyComponentProps &amp; { children?: ReactNode; }'.ts(2322)
  </code></pre>
  
  <p>What am I doing wrong?</p>