react-google-plus-share-link

1.0.2 • Public • Published

react-google-plus-share-link

Create "share this on Google+" links in React.

Installation

With npm:

npm install --save react-google-plus-share-link

Or with Yarn:

yarn add react-google-plus-share-link

Usage

import ShareLink from 'react-google-plus-share-link'
 
...
 
<ShareLink link='https://your-site.com/some-page'>
   {link => (
      <a href={link} target='_blank'>Share this on Google+</a>
   )}
</ShareLink>

If you don't pass in a link prop, it will use the current page (window.location.href).

Package Sidebar

Install

npm i react-google-plus-share-link

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

11.5 MB

Total Files

118

Last publish

Collaborators

  • amadoa
  • dalewray
  • codevelopit
  • mastaaaron
  • escasports
  • tbaustin
  • ken85rose