i have built a site on a CMS (Drupal) with React apps. I use Helmet to generate metadatas (title / description) from my components/child components.
In the components I use this code:
<Helmet>
<title>{...my custom title...}</title>
<meta name="description" content={...my custom description...} />
</Helmet>
If I analyse the code in the Dev Tools of Chrome, I see that the metadatas are updated.
If I analyse the source code of the page, the metatadas aren't updated. These metadatas, are generated outside the React app, in a HTML section. So, the metadatas title and description keep the default values.
What is the good method to "update" the metadatas in the HTML section? I need to update only specific metadatas (title, description, canonical...), the others elements of the head section are generated by the CMS.
Thanks for yours recipes and helps.