Closed tawn33y closed 1 year ago
https://github.com/nfl/react-helmet
You should check out that library. You basically have to statically render the head in that case, and add the replacement into the html. You could call const head = Helmet.renderStatic()
and then do another template.replace(
, head.title.toString())
, and add in app-title
to index.html
.
However I'd be wary of any of this - https://github.com/nfl/react-helmet/issues/216 - react helmet is inherently not thread safe, so you might run into data pollutions with this.
I'm using react-helmet to update the
Head
tags but the built HTML source (ctrl + u) does not reflect this. However, if you inspect element (ctrl + shift + i) and look at the source, the head is updated well.Any ideas on how to update the head tags as well?