<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Remark Ninja</title>
    <description>The latest articles on DEV Community by Remark Ninja (@remarkninja).</description>
    <link>https://dev.to/remarkninja</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F270079%2Fa743faf9-36ac-44dd-831b-752c2fbafa8d.jpg</url>
      <title>DEV Community: Remark Ninja</title>
      <link>https://dev.to/remarkninja</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/remarkninja"/>
    <language>en</language>
    <item>
      <title>Adding comments to GatsbyJS/React sites</title>
      <dc:creator>Remark Ninja</dc:creator>
      <pubDate>Tue, 12 Nov 2019 09:28:34 +0000</pubDate>
      <link>https://dev.to/remarkninja/adding-comments-to-react-sites-11ea</link>
      <guid>https://dev.to/remarkninja/adding-comments-to-react-sites-11ea</guid>
      <description>&lt;p&gt;&lt;a href="https://remark.ninja"&gt;Remark Ninja&lt;/a&gt; is a comment system we've been using for our own sites and a few sites of clients and friends. Now we are releasing a beta version as a free hosted service.&lt;/p&gt;

&lt;p&gt;We use the React-based framework &lt;a href="https://www.gatsbyjs.org"&gt;GatsbyJS&lt;/a&gt; for most of our sites, so at this moment we are only providing React integration. You only need to add one line to your template.&lt;/p&gt;

&lt;p&gt;First, install the NPM module:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -S remark-ninja-react
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Then just add the &lt;code&gt;Comments&lt;/code&gt; component at the appropriate place.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import Comments from 'remark-ninja-react';

//...

&amp;lt;Comments siteId="..." threadSlug="..." /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;code&gt;siteId&lt;/code&gt; is the unique site ID you can find on the settings page after creating a site in the &lt;a href="https://manage.remark.ninja"&gt;management console&lt;/a&gt;. &lt;code&gt;threadSlug&lt;/code&gt; is the identifier for the comment thread. If you're using it for your blog, and each post has a unique URL, you can simply omit it, in which case it's generated from the URL path component. Please refer to the &lt;a href="https://remark.ninja/docs/"&gt;documentation&lt;/a&gt; for details. We are still making some minor changes to the RESTful API before publishing the API docs and creating components/plugins for non-React sites.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://manage.remark.ninja/register"&gt;Sign up&lt;/a&gt; for free and try it.&lt;/p&gt;

&lt;p&gt;We expect to add the following features in the next few weeks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;better moderation tools&lt;/li&gt;
&lt;li&gt;SPAM filtering&lt;/li&gt;
&lt;li&gt;reply and notifications&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gatsby</category>
      <category>react</category>
    </item>
  </channel>
</rss>
