Skip to content

etnlbck/react-disqus-comments-sso

 
 

Repository files navigation

react-disqus-comments-sso

This is a fork

Forked from the popular package by mzabriskie, but with a few fixes. Added Single Sign-On support.

Also adds the optional targetWindow property to allow disqus to embed in windows other than the default.

Installing

$ npm install react-disqus-comments-sso

Example

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

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}
				api_key="PUBLIC KEY"
				remote_auth_s3="ACCESS_TOKEN"
				targetWindow={window} // Optional
				/>
		);
	}
});

React.render(<App/>, document.getElementById('container'));

License

MIT

About

React Discus Comments w/ SSO

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%