Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

130
Visualizações
How to Update Dynamic Meta Tags using Reactjs

I Fetch Data From Server and I want to show dynamic meta title and description but when i set dynamic data in inspect element it show's dynamic values but not updated in page source and also when share on social media like whatsapp, facebook etc it not showing dynamic title and description.

 const MetaTag = (props) => {
 const { pageTitle, metaTitle, metaDescription } = props;
 return (
 <Helmet>
  <title>{pageTitle}</title>
  {/* <!-- Primary Meta Tags --> */}
  <meta name="title" content={metaTitle} />
  <meta name="description" content={metaDescription} />

  {/* <!-- Open Graph / Facebook --> */}
  <meta property="og:type" content="website" />
  <meta property="og:url" content="https://google.com/" />
  <meta property="og:title" content={metaTitle} />
  <meta property="og:description" content={metaDescription} />
  <meta property="og:image" content="%PUBLIC_URL%/apple-icon-57x57.png" />

  {/* <!-- Twitter --> */}
  <meta property="twitter:card" content="summary_large_image" />
  <meta property="twitter:url" content="https://google.com/" />
  <meta property="twitter:title" content={metaTitle} />
  <meta property="twitter:description" content={metaDescription} />
  <meta
    property="twitter:image"
    content="%PUBLIC_URL%/apple-icon-57x57.png"
  />
</Helmet>

); };

It shows dynamic meta title and description in inspect element but when i do ctrl + u in page source it not showing dynamic meta title and description also when i share my site from mobile to facebook,whatsapp it can't show correct meta title and description

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda