title: how to write react class as a plain javascript class?
body: <p>I am learning react native.  i want to rewrite the following line using a plain javascript class.</p>
  
  <pre><code>module.exports = React.createClass({
  </code></pre>
  
  <p>to </p>
  
  <pre><code>export class Dashboard extends React.Component {
  </code></pre>
  
  <p>not sure if i am doing it right.  in the original code, it just exports without giving a class name. can I do the same? or does it hurt if I give a name.</p>
  
  <p>the full source code is <a href="https://github.com/iSimar/HackerNews-React-Native/blob/master/App/Views/Dashboard/index.ios.js" rel="nofollow">there</a>. the line i try to modify is line 19.</p>