Showing a syntax error and "get the code" is not giving result


#1


#Learn ReactJS: Part I
#8. Define Instructions in a Function Call
can anyone please help me what should be done for new.js

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

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


#2

change the variable name MyComponentClass to componentBlueprint. It will work


#3

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