Help with Exercise 3 build a stateful component class


#1

I have tried to rewrite my code many times but got the same error every time
This is my code:
var React = require ('React.js');
var ReactDOM = require ('ReactDOM.js');

var Parent = React.createClass(
render: function () {
return

;
});

#2

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

var Parent=React.createClass({
render:function(){
return

;
}
});

#3

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