gaearon / react-document-title

Declarative, nested, stateful, isomorphic document.title for React
MIT License
1.86k stars 105 forks source link

Support export.default? #47

Open dmytro-shchurov opened 7 years ago

dmytro-shchurov commented 7 years ago

Hi. I use TypeScript with React. One thing is that I'm not able to import DocumentTitle with DT d.ts. This is not a big deal, s I've created my own d.ts for DocumentTitle. Another thing is that your module misses default, so I have to use ugly import DocumentTitle = require('react-document-title'). Thanks

pacey commented 6 years ago

Does that workaround work for you @dmytro-shchurov? It half works for me...The component manages to import and work but the TypeScript compiler throws errors