Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

react-disqus-comments

1.4.0 • Public • Published

react-disqus-comments

Installing

$ npm install react-disqus-comments

Example

import React from 'react';
import ReactDisqusComments from 'react-disqus-comments';
 
class App extends React.Component {
  handleNewComment(comment) {
    console.log(comment.text);
  }
 
  render() {
    return (
      <ReactDisqusComments
        shortname="example"
        identifier="something-unique-12345"
        title="Example Thread"
        url="http://www.example.com/example-thread"
        category_id="123456"
        onNewComment={this.handleNewComment}/>
    );
  }
}
 
React.render(<App/>, document.getElementById('container'));

License

MIT

Thanks

Thanks to mzabriskie for the original package. This package fixes annoying warnings.

install

npm i react-disqus-comments

Downloadsweekly downloads

1,326

version

1.4.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability