I am trying to render an html component that has a comment it so that the comment shows up in the DOM as comment.
I currently have
<head>
<title>{props.pageTitle}</title>
</head>
But I would like to have
<head>
<title>{props.pageTitle}</title>
<!-- Some information here -->
</head>
And I would like to avoid using the following:
dangerouslySetHtml
element.innerHTML = "...";
element.outerHTML = "...";