Documentation

Integration

React-based sites

If you use GatsbyJS or other React-based sites, just install the remark-ninja-react component:

npm i -S remark-ninja-react

And then use the Comments react component:

import Comments from 'remark-ninja-react';

// ...

<Comments siteId='your-site-id' threadSlug='unique-thread-slug' />;

Explanation of the props:

Props Meaning
siteId Unique ID for the site. You can find it on the site settings page
threadSlug Optional. Unique ID for the current comment thread. Generated from the page URL path if omitted.

RESTful API