Pass componentBlueprint to React.createClass as an argument. Now, React.createClass has everything it needs!


#1


Make sure that you are calling React.createClass(componentBlueprint).


var React = require('react');
var ReactDOM = require('react-dom');

var componentBlueprint = React.createClass({
  render: function () {
    return <h1>Hello world</h1>;
  }
});

var MyComponentClass = React.createClass();

I did just that and it still spitting out an error at me! What the heck am i doing wrong!?


#2

Compare this to your code.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.