0.5.7 • Published 7 years ago

react-disqus-thread-api v0.5.7

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

react-disqus-comments

This is a fork

Forked from the popular package by mzabriskie, but with a few fixes.

Installing

$ npm install react-disqus-comments

Example

var React = require('react');
var ReactDisqusComments = require('react-disqus-comments');

var App = createClass({
	
	handleNewComment: function(comment) {
		console.log(comment.text);
	}

	render: function () {
		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

0.5.7

7 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.4.0

7 years ago