What would the return type be here?
const Foo : () => // ??? = () => ( Foobar )
interface ISomeCoolInterface { some: 'string'; cool: 'string'; props: 'string' } const SomeCoolComponent : React.FC = ({ some, cool, props }): JSX.Element => { return {some, cool, props} }
The important bit here being the return type JSX.Element
JSX.Element