-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
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>
);
}
}
brookback and alonrbarbohdanyurov-gl
Metadata
Metadata
Assignees
Labels
No labels