ssr-create-react-app-v2 icon indicating copy to clipboard operation
ssr-create-react-app-v2 copied to clipboard

SSR title/meta with react-helmet

Open kronthto opened this issue 8 years ago • 1 comments

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

kronthto avatar Jul 30 '17 19:07 kronthto

There's a better way to do this than react helmet I think, writing another article

ayroblu avatar Aug 06 '17 23:08 ayroblu