@slickcomment/slickcomment-react

1.3.2 • Public • Published

SlickComment React Component

Installation

Using npm:

npm install --save slickcomment-react

Using yarn:

yarn add slickcomment-react

Usage:

import SlickComment from 'slickcomment-react';

function App() {
    return (
        <SlickComment.WidgetDiscussion
            config={{
                siteId: 'REPLACE WITH YOUR VALUE',
                pageId: 'REPLACE WITH YOUR VALUE',
                pageUrl: 'REPLACE WITH YOUR VALUE',
            }}
        />
        
        <SlickComment.WidgetUserComments
            config={{
                siteId: 'REPLACE WITH YOUR VALUE',
                userSsoId: 'REPLACE WITH YOUR VALUE',
            }}
        />

        <SlickComment.WidgetSiteComments
            config={{
                siteId: 'REPLACE WITH YOUR VALUE',
            }}
        />

        <SlickComment.WidgetModeration
            config={{
                siteId: 'REPLACE WITH YOUR VALUE',
                getUserSsoToken: () => {
                    // TODO: implement this
                }
            }}
        />
    )
}

Package Sidebar

Install

npm i @slickcomment/slickcomment-react

Weekly Downloads

1

Version

1.3.2

License

MIT

Unpacked Size

229 kB

Total Files

8

Last publish

Collaborators

  • khoahuydotcom