reactjs - Why does React strangely render the <p> (paragraph) tag? -
react doing strange things <p> tag. using same markup structure, <p> tag vs <div> tag produces different results. example,
var withp = ( <p> withp <div /> </p> ); var withdiv = ( <div> withdiv <div /> </div> ); here generated markup looks in chrome:

here live jsbin demo.
why react render <p> differently <div>?
<p> can not have nested block elements. chrome (not react) transforming markup make valid.
Comments
Post a Comment