title: React named class component vs anonymous class component
body: <p>Is there a difference between a named class component and an anonymous class component? The standard pattern for HOC's is to return an anonymous class that renders the WrappedComponent. Is there any downside to exporting normal components as an anonymous class as well?</p>
  
  <p><strong>Named class:</strong></p>
  
  <p>MyComponent.js</p>
  
  <pre><code>export default class MyComponent extends Component {...}
  
  ....
  
  import MyComponent from './MyComponent';
  
  &lt;MyComponent /&gt;
  </code></pre>
  
  <p><strong>Anonymous class:</strong></p>
  
  <p>MyComponent.js</p>
  
  <pre><code>export default class extends Component {...}
  
  ....
  
  import MyComponent from './MyComponent';
  
  &lt;MyComponent /&gt;
  </code></pre>
  
  <p>Any implications with React Suspense?</p>