I'm not sure why I never realized this, but it makes sense.

JSX doesn't treat new lines in text the same way that the browser interprets them in HTML text content

It's just interesting, in HTML the outcomes below would be the same.
1 / 2
Post image
Post image

Comments