Purely front-end React.js implementation - how can I update my meta tags?

javascript

#1

I’m running an entirely front-end React.js single-page website (through GitHub pages). There’s a single index.html for the entire site, and links are controlled through the URL hash. If the user is on the home page, the URL is https://example.com; if they click on the About page, the URL is updated to https://example.com/#about. The problem is that the meta tags are static within index.html.

Is there any way I can update the Twitter card to reflect the real content of the linked page after the content has loaded?