ssr-create-react-app-v2
ssr-create-react-app-v2 copied to clipboard
SSR title/meta with react-helmet
Provides an example implementation of react-helmet including pre-rendering on the server.
I don't have yarn installed so I couldn't update the lock-file.
In development mode, the {{HELMET_%}} strings do not get replaced and therefore show on the top of the document. I tried <!--{{HELMET_%}}--> (and the same in the replace function), but react-scripts removes comments in the build command, so there was nothing to replace. Maybe someone has an idea on how to solve this better?
Ref #10
There's a better way to do this than react helmet I think, writing another article