1.0.0 • Published 8 years ago

react-sharethis v1.0.0

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

react-sharethis

React component for ShareThis widgets.

This component helps you integrating ShareThis.com widgets into your React application.

Usage:

You have to add the following javascript to your HTML:

<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
    stLight.options({
            publisher:'12345',
    });
</script>

Then you can render your component:

var React = require('react');
var ReactDOM = require('react-dom');
var ShareThisButton = require('react-sharethis');

ReactDOM.render(
  React.createElement(ShareThisButton, { service: 'sharethis', url: 'http://www.sharethis.com', title: 'ShareThis' }),
  document.getElementById('content')
);
1.0.0

8 years ago

0.0.1

8 years ago