Why is my second component not loading in the first component? Here is the code:
var ComponentOne = React.createClass({
render: function(){
return(
<div>
<h1>ComponentOne</h1>
<componentTwo />
</div>
)
},
});
var componentTwo = React.createClass({
render: function(){
return(
<div>
<h2> componentTwo </h2>
</div>
)
}
})
Here I have added second component in the first component by <componentTwo />
but still not displaying.
Here is a Plunker.