I am using semantic-ui-react in my react app with typescript and it is giving error. The project uses PnPify.
TS2604: JSX element type 'Header' does not have any construct or call signatures.
I am very new to typescript and don't know how to resolve this, here is a component
import React from 'react'
import Card from '../UI/Card'
import {Header } from 'semantic-ui-react'
const Test: React.FC = () => {
return (
<div>
<Card>
<Header> Test </Header>
</Card>
</div>
)
}
export default Test
EDIT: I copy-pasted this definition file for types and it seems to be working but I am not sure this is the right way to do it https://gist.github.com/tomitrescak/6261ad27dbe43aad03b2497721d751f5