You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

react-disqus-comments-sso

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-disqus-comments-sso

React Disqus thread component with Single Sign-On

0.7.0
latest
Source
npm
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

disqus

FAQs

Package last updated on 14 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts