reactjshtml-metareact-helmet

React <Helmet> is not updating the meta


I have created a react app with around 10 components. I have added meta tag using Helmet. But when I inspect source from browser, but meta tag shows some random imdb the rock type thing.
Any suggestions will be appreciated.

<Helmet>
   <meta charSet="utf-8" />
   <title>My Title</title>
   <link name="description" content="some test description" />
</Helmet>

Solution

  • You cannot inspect meta tags from html source, because:

    If you want to check meta tags:

    For example, open developer console and you can find link tag as follows:

    document.querySelector("link[name=description]");