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 ='https://your-site.com/some-page'> <a = ='_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
).