DEV Community

Discussion on: Dynamic document head with React Helmet

Collapse
 
ravirize profile image
Ravi Sharma • Edited

I have declared a meta tag with keyword in index.html, now i am trying to override the keyword from specific component by using react-helmet but it is not updating keywords from specific component, it always displays the content of index.html instead of specific component where i have updated the meta tag content.
Can any one help me out of this.
Thank you.

Collapse
 
aleksacupic profile image
AleksaCupic

If you use SSR it should work fine. However, If you render it on client it will always read index.html meta tags first.

Collapse
 
ngesbrian profile image
NgesBrian

so how do I make my react application with PHP API to be able to change that information for every single page