Skip to content

How to dynamically add meta tags for seo and social share in react js app

I am currently working on news website using react js (backend express js rest api). This site need social share functionality with image and title of the post. I add meta tags using helmet. I tried pre-render-packages too, Even though this not showing images of the post when sharing. Can I achieve this using api without server side rendering. help me to done this.

Answer

I done this using next.js (the react framework). This can make API call and generate html in the server. With this SEO and share with title and image is working properly.