-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with importing when using TypeScript #60
Comments
@julianguyen I'm using normally import DocumentTitle from 'react-document-title'; |
I experience the same with
This warning is shown in the browser console when doing import DocumentTitle from 'react-document-title'; and I cannot do import * as DocumentTitle from 'react-document-title'; Buuut I guess this is actually an issue with the Typescript definitions (source here, by @cleverguy25), and not with this specific repo. |
Ok, quick fix for the ones who have this problem:
Sources: |
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.The text was updated successfully, but these errors were encountered: