I have written a simple react component but it is not rendering the HTML on the page. Could someone please guide me where I am doing wrong?
http://codepen.io/NehhaSharma/pen/EVNdJJ?editors=101
Thanks.
<div id="content"></div>
<script type="text/jsx">
var newComponent = React.createClass({
render : function(){
return (
<h2>My Name is React</h2>
);
}
});
React.render(<newComponent/>,document.getElementById('content'));
</script>