What does the error “JSX element type ‘…’ does not have any construct or call signatures” mean?

I wrote some code:

function renderGreeting(Elem: React.Component<any, any>) {
    return <span>Hello, <Elem />!</span>;
}

I’m getting an error:

JSX element type Elem does not have any construct or call signatures

What does it mean?

18 Answers
18

Leave a Comment