title: React TypeScript return type component
body: <p>Here is my code:</p>
  
  <pre><code> const options = {
      dataFormat: (rowId: number) =&gt; &lt;TableActions rowId={id} options={tableActionsOptions} /&gt;,
   };
  </code></pre>
  
  <p>I want to return <code>&lt;TableActions /&gt;</code> in dataFormat. However, I am getting the following error:</p>
  
  <pre><code>JSX element type 'false | Element' is not a constructor function for JSX elements
  </code></pre>