title: how to export React component from a typescript file
body: <p>I have a class that looks like this:</p>
  
  <blockquote>
    <p>class ProductChecker extends React.Component { .... }</p>
  </blockquote>
  
  <p>at the bottom of the file, I have:</p>
  
  <blockquote>
    <p>export default graphql(getSymbolInfoQuery)(ProductChecker);</p>
  </blockquote>
  
  <p>where graphql is imported from react-apollo and getSymbolInfoQuery is a gql templated string.  When compiling the project, I am getting:</p>
  
  <blockquote>
    <p>src/client/gui/containers/product-checker.ts(3,10): error TS2305:
    Module '"../components/product-checker"' has no exported member
    'ProductChecker'</p>
  </blockquote>
  
  <p>but when I comment out the bottom of the file line and do:</p>
  
  <blockquote>
    <p>export class ProductChecker extends React.Component {</p>
  </blockquote>
  
  <p>that seems to be building just fine.  So it looks like the export at the bottom of the file does not "see" class/component declaration higher up, and says that its not found.
  Any idea how to export a React class from a typescript source file?  THank you</p>