react-helmet icon indicating copy to clipboard operation
react-helmet copied to clipboard

Render function in package dependency not rendering

Open benkermode opened this issue 9 years ago • 1 comments

Hey team, I have React Helmet working nicely on a server-rendered page, using a function called renderServerView in my components package. The function creates a react element, renders it to a string, then I call Helmet.renderStatic() and interpolate the html as a string. However, in another repo, the "host" repo, I install components as an npm dependency via npm i. When i try and call renderServerView from the host, passing it a component, with Helmet markup in the template, the renderServerView function has only empty strings from Helmet. Is there something I have to be aware of in using Helmet this way? Something about require between repos or something?

benkermode avatar Sep 25 '17 23:09 benkermode

I'm having the same issue, wondering if you ever found a workaround for this?

jkkjonah avatar Mar 23 '18 22:03 jkkjonah