React is doing strange things with the <p>
tag. Using the same markup structure, with a <p>
tag vs a <div>
tag produces very different results. For example,
var withP = (
<p>
withP
<div />
</p>
);
var withDiv = (
<div>
withDiv
<div />
</div>
);
Here is what the generated markup looks like in chrome: