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


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!?


Compare this to your code.


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