Skip to content

Instantly share code, notes, and snippets.

@hunterloftis
Created February 17, 2014 20:52
Show Gist options
  • Save hunterloftis/9058885 to your computer and use it in GitHub Desktop.
Save hunterloftis/9058885 to your computer and use it in GitHub Desktop.
/** @jsx React.DOM */
var React = require('react');
module.exports = React.createClass({
render: function() {
<h1>Route: { this.props.route }</h1>
}
});
@paramaggarwal
Copy link

It's not returning the component. It should be :

/**
 * @jsx React.DOM
 */

var React = require('react');

module.exports = React.createClass({
  render: function() {
    return (
      <h1>Route: { this.props.route }</h1>
    );
  }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment