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?
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?