1.2.3 • Published 4 years ago

react-disqus-components v1.2.3

Weekly downloads
1,640
License
MIT
Repository
github
Last release
4 years ago

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

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago