diff --git a/site/src/docs/manuals/integration-with-gatsby/index.md b/site/src/docs/manuals/integration-with-gatsby/index.md index bf62c6b2f..bd0ea5785 100644 --- a/site/src/docs/manuals/integration-with-gatsby/index.md +++ b/site/src/docs/manuals/integration-with-gatsby/index.md @@ -1,5 +1,5 @@ # Using Remark42 in Gatsby projects -## Sample Comments.js React component: +## React component written in Javascript ```js @@ -96,3 +96,109 @@ const Comments = ({ location }) => { export default Comments ``` + +## React component written in Typescript + +```ts +import { Fragment, useEffect } from 'react'; + +declare global { + interface Window { + REMARK42: any; + remark_config: any; + } +} + +// This function will insert the usual