Using TypeScript and @types/react-document-title.
I'm trying to do import * as DocumentTitle from 'react-document-title'; but in my render() I get
[ts] JSX element type 'DocumentTitle' does not have any construct or call signatures.
I tried import DocumentTitle from 'react-document-title'; and the page won't load properly.
export class Test extends React.Component<{}, {}> {
render() {
return (
<DocumentTitle title="Hey">
Test
</DocumentTitle>
);
}
}
Using TypeScript and
@types/react-document-title.I'm trying to do
import * as DocumentTitle from 'react-document-title';but in my render() I get[ts] JSX element type 'DocumentTitle' does not have any construct or call signatures.I tried
import DocumentTitle from 'react-document-title';and the page won't load properly.