Typescript | Warning about Missing Return Type of function, ESLint : <p>I have a <code>REACT-STATELESS-COMPONENT</code>, in a project with TypeScript. It has an error, saying, that </p>

<pre><code>Missing return type on function.eslint(@typescript-eslint/explicit-function-return-type)
</code></pre>

<p>I am not sure what it wants me to do. Here is my code:</p>

<pre><code>import React, { Fragment} from 'react';
import IProp from 'dto/IProp';

export interface Props {
  prop?: IProp;
}

const Component = &lt;T extends object&gt;({ prop }: Props &amp; T) =&gt; (
  &lt;Fragment&gt;
    {prop? (
      &lt;Fragment&gt;
        Some Component content..
      &lt;/Fragment&gt;
    ) : null}
  &lt;/Fragment&gt;
);

LicenseInfo.defaultProps: {};

export default Component;

</code></pre>

<p>Can you tell me what I need to do. I need to read about TS, but currently I don't get it at all. And I can't commit right now cause of this.</p>
