Reputation:
Here is the case. In my React(SPA) application I have only one page that needs to be shared. And when it is shared I need to add the following meta tags to the head element:
<head>
<meta name="description" content="some text" />
<meta property="og:image" content="../../some-ing.png" />
<meta property="og:description" content="some text" />
</head>
All content for meta tags is dynamic. I tried to use react-helmet-async library. It changes the meta tags when the page mounts if I check it in the developer tools, but when I share the link to this page the image and description is not shown with a link.
Is it possible to implement it without SSR?
Upvotes: 0
Views: 147