When I use a variable starting with a small letter, the page is showing nothing. If I change the variable name to start with uppercase (HelloWorld) the page is showing the content.
<script type="text/jsx">
var helloWorld = React.createClass({
render : function () {
return (
<div>
<h1>Hello World</h1>
</div>
);
}
});
React.render(<helloWorld/> , document.body);
</script>
Can anyone tell me why this is happening?