var React = require( 'react' );

export default React.createClass({
  render() {
    return (
      <h1>Foo</h1>
    )
  }
});

var React = require( 'react' );

export default class extends React.Component {
  render() {
    return (
      <h1>Foo</h1>
    )
  }
}

Use ES6 for React class declaration
Use ES6 for React class declaration
