I am facing an issue with my render()
function where the outer div is not rendering, but the inner ReactComponent
is displaying. Here is a snippet of my code:
return(
<div style={{background: "black"}}>
<[ReactComponent]>
<[AnotherReactComponent]>
...
</[AnotherReactComponent]>
</[ReactComponent]>
</div>
);
Despite this code structure, only the ReactComponent
is visible when I inspect the element.