react-disqus-components
v1.2.3
Published
react-disqus-components wrapper for official disqus web api
Downloads
41
Maintainers
Readme
react-disqus-components
React Functional Component with disqus
webapi integration.
Usage
Only support React Functional Component
Required Props
See DisqusCommentProps
export interface DisqusCommentProps {
title: string;
identifier: string;
url: string;
shortname: string;
}
Example
import * as React from 'react';
import { Comment } from 'react-disqus-components';
export const MyComponent = () => {
const pageTitle = 'My Page Title';
const disqusConfig = {
identifier: '', // your page uniq id
url: '', // uslug url
shortname: '' // disqus shortname
};
return (
<Comment
title={pageTitle}
identifier={disqusConfig.identifier}
url={disqusConfig.url}
shortname={disqusConfig.shortname}
/>
);
};