1.3.2 • Published 2 years ago
@slickcomment/slickcomment-react v1.3.2
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
}
}}
/>
)
}