I'm trying to add a comment script to my blog running on Gatsby. Here is a part of post template :
return (
<Layout>
<ArticleSEO article={article} authors={authors} location={location} />
<ArticleHero article={article} authors={authors} />
<ArticleAside contentHeight={contentHeight}>
<Progress contentHeight={contentHeight} />
</ArticleAside>
<MobileControls>
<ArticleControls />
</MobileControls>
<ArticleBody ref={contentSectionRef}>
<MDXRenderer content={article.body}>
<ArticleShare />
</MDXRenderer>
</ArticleBody>
{mailchimp && article.subscription && <Subscription />}
// I want to put <script> tag here
{next.length > 0 && (
<NextArticle narrow>
<FooterNext>More articles from {name}</FooterNext>
<ArticlesNext articles={next} />
<FooterSpacer />
</NextArticle>
)}
</Layout>
);
I've read some article, some question and answer about this problem but I can't solve it. If you need full code, Click here. This is a example script that I want to add :
<script src="https://utteranc.es/client.js"
repo="[ENTER REPO HERE]"
issue-term="pathname"
theme="github-light"
crossorigin="anonymous"
async>
</script>