title: Is this error caused by using React code-splitting with component inheritance?
body: <p>I've seen quite a few questions that asks about <code>Uncaught TypeError: Cannot call a class as a function</code> error. Usually it's caused by not extending from <code>React.Component</code> or some typo. However in my case I'm sure that everything is correct. It's quite a big code base (120k+ LOC). This error started showing up after introducing code splitting. Only thing I've done is that I've wrapped few <code>Switch</code> components into <code>React.Suspense</code> and changed route components imports to <code>React.lazy</code>.</p>
  <p>Facebook development team recommends to use Composition over Inheritance but they don't specify any use cases where this might be a problem. Couple of our components uses inheritance. They just inherit from some component that has additional functions. Could this be the issue? That we use inheritance?</p>
  <p>This is the code of the second latest call from stack trace</p>
  <pre><code>class App extends BaseApp {
    constructor(props) {
      super(props)
    }
    ...
  }
  </code></pre>