I understand how (and why) to add a whitespace in JSX, but I am wondering what\'s best practice or if any makes any real difference?
Wrap both elements in a
You can use the css property white-space and set it to pre-wrap to the enclosing div element.
div { white-space: pre-wrap; }