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

1.2.3 • Public • Published

react-disqus-components

NPM Github Workflow Status Codecov Semantic-Release

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}
    />
  );
};

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.3
    4
    • latest

Version History

Package Sidebar

Install

npm i react-disqus-components

Weekly Downloads

4

Version

1.2.3

License

MIT

Unpacked Size

32.3 kB

Total Files

11

Last publish

Collaborators

  • aquariuslt