The render function - working code😮


#1


https://www.codecademy.com/courses/react-101/lessons/your-first-react-component/exercises/component-instructions-function


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

//var componentBlueprint = {};


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


#2

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