commentcarp-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Commentcarp React

Commentcarp React is a simple hook implementation of the Commentcarp script.

About Commentcarp

Commentcarp is an easy and privacy-oriented comment system for your website. It's a simple, easy-to-use, and secure way to add comments to any site.

How to use

yarn add commentcarp-react

or

npm install commentcarp-react

Then, wherever you want Commentcarp to display its editor:

import { useCommentcarp } from 'commentcarp-react';

const Commentcarp = () => {
  const _cc = useCommentcarp('your Commentcarp API key');
  return <div id="commentcarp" />;
};

Commentcarp will load on any page that uses the useCommentcarp hook and that contains a #commentcarp element.

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i commentcarp-react

    Weekly Downloads

    4

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    26.9 kB

    Total Files

    15

    Last publish

    Collaborators

    • creativiii