gaearon / gaearon/react-document-title

Issues with importing when using TypeScript

Open
#60 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
102
PR merge metrics
No merged PRs in 30d

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 (

Test

);
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.