Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!